public class PropertyValueException extends HibernateException
Thrown when the (illegal) value of a property can not be persisted. There are two main causes: <ul> <li>a property declared <tt>not-null="true"</tt> is null <li>an association references an unsaved transient instance </ul>
| Constructor and Description |
|---|
PropertyValueException(String message,
String entityName,
String propertyName)
Constructs a PropertyValueException using the specified information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityName() |
String |
getMessage() |
String |
getPropertyName() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PropertyValueException(String message, String entityName, String propertyName)
Constructs a PropertyValueException using the specified information.
message - A message explaining the exception conditionentityName - The name of the entity, containing the propertypropertyName - The name of the property being accessed.public String getEntityName()
public String getPropertyName()
public String getMessage()
getMessage in class ThrowableCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.