Top Constructors Methods
org.hibernate

public Class PropertySetterAccessException

extends PropertyAccessException
Class Inheritance
Imports
java.util.Collection, org.hibernate.proxy.HibernateProxy, org.checkerframework.checker.nullness.qual.Nullable

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public
PropertySetterAccessException(Throwable
The underlying cause
cause
,
Class<?>
The class which is supposed to contain the property in question
persistentClass
,
String
The name of the property.
propertyName
,
Class<?>
The expected property type
expectedType
,
Object
The target, which should be of type 'persistentClass'
target
,
@Nullable 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 static String
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<?> persistentClass, String propertyName, Class<?> expectedType, Object target, @Nullable Object value)

Constructs a PropertyAccessException using the specified information.

Parameters
cause:Throwable

The underlying cause

persistentClass:Class<?>

The class which is supposed to contain the property in question

propertyName:String

The name of the property.

expectedType:Class<?>

The expected property type

target:Object

The target, which should be of type 'persistentClass'

value:@Nullable Object

The property value we are trying to set

Method Detail

loggablePropertyValueStringback to summary
public static String loggablePropertyValueString(Object value)
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