public class PropertyAccessException extends HibernateException
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 <ul> <li>failure of a security check <li>an exception occurring inside the getter or setter method <li>a nullable database column was mapped to a primitive-type property <li>the Hibernate type was not castable to the property type (or vice-versa) </ul>
Constructor and Description |
---|
PropertyAccessException(Throwable cause,
String message,
boolean wasSetter,
Class persistentClass,
String propertyName)
Constructs a PropertyAccessException using the specified information.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Class |
getPersistentClass() |
String |
getPropertyName() |
protected String |
originalMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PropertyAccessException(Throwable cause, String message, boolean wasSetter, Class persistentClass, String propertyName)
Constructs a PropertyAccessException using the specified information.
cause
- The underlying causemessage
- A message explaining the exception conditionwasSetter
- Was the attempting to access the setter the cause of the exception?persistentClass
- The class which is supposed to contain the property in questionpropertyName
- The name of the property.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.