Top Description Fields Constructors Methods
org.hibernate

public Class PropertyAccessException

extends HibernateException
Class Inheritance
Known Direct Subclasses
org.hibernate.PropertySetterAccessException
Imports
org.hibernate.internal.util.StringHelper

A problem occurred accessing a property of an instance of a persistent class by reflection, or via enhanced entities. There are a number of possible underlying causes, including
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final Class<T>
private final String
private final boolean

Constructor Summary

AccessConstructor and Description
public
PropertyAccessException(Throwable
The underlying cause
cause
,
String
A message explaining the exception condition
message
,
boolean
Was the attempting to access the setter the cause of the exception?
wasSetter
,
Class<T>
The class which is supposed to contain the property in question
persistentClass
,
String
The name of the property.
propertyName
)

Constructs a PropertyAccessException using the specified information.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public Class<T>
public String
protected String

Field Detail

persistentClassback to summary
private final Class<T> persistentClass
propertyNameback to summary
private final String propertyName
wasSetterback to summary
private final boolean wasSetter

Constructor Detail

PropertyAccessExceptionback to summary
public PropertyAccessException(Throwable cause, String message, boolean wasSetter, Class<T> persistentClass, String propertyName)

Constructs a PropertyAccessException using the specified information.

Parameters
cause:Throwable

The underlying cause

message:String

A message explaining the exception condition

wasSetter:boolean

Was the attempting to access the setter the cause of the exception?

persistentClass:Class<T>

The class which is supposed to contain the property in question

propertyName:String

The name of the property.

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getPersistentClassback to summary
public Class<T> getPersistentClass()
getPropertyNameback to summary
public String getPropertyName()
originalMessageback to summary
protected String originalMessage()