Top Constructors Methods
org.hibernate

public Class PropertySetterAccessException

extends PropertyAccessException
Class Inheritance

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public
PropertySetterAccessException(Throwable
The underlying cause
cause
,
Class<T>
The class which is supposed to contain the property in question
persistentClass
,
String
The name of the property.
propertyName
,
Class<T>
The expected property type
expectedType
,
Object
The target, which should be of type 'persistentClass'
target
,
Object
The property value we are trying to set
value
)

Constructs a PropertyAccessException using the specified information.

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.
Inherited from org.hibernate.PropertyAccessException:
getMessagegetPersistentClassgetPropertyNameoriginalMessage

Constructor Detail

PropertySetterAccessExceptionback to summary
public PropertySetterAccessException(Throwable cause, Class<T> persistentClass, String propertyName, Class<T> expectedType, Object target, Object value)

Constructs a PropertyAccessException using the specified information.

Parameters
cause:Throwable

The underlying cause

persistentClass:Class<T>

The class which is supposed to contain the property in question

propertyName:String

The name of the property.

expectedType:Class<T>

The expected property type

target:Object

The target, which should be of type 'persistentClass'

value:Object

The property value we are trying to set

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override