Top Description Fields Constructors Methods
org.hibernate

public Class PropertyValueException

extends HibernateException
Class Inheritance
Imports
org.hibernate.internal.util.StringHelper

Thrown when the (illegal) value of a property can not be persisted. There are two main causes:
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
PropertyValueException(String
A message explaining the exception condition
message
,
String
The name of the entity, containing the property
entityName
,
String
The name of the property being accessed.
propertyName
)

Constructs a PropertyValueException using the specified information.

Method Summary

Modifier and TypeMethod and Description
public String
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public String

Field Detail

entityNameback to summary
private final String entityName
propertyNameback to summary
private final String propertyName

Constructor Detail

PropertyValueExceptionback to summary
public PropertyValueException(String message, String entityName, String propertyName)

Constructs a PropertyValueException using the specified information.

Parameters
message:String

A message explaining the exception condition

entityName:String

The name of the entity, containing the property

propertyName:String

The name of the property being accessed.

Method Detail

getEntityNameback to summary
public String getEntityName()
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
getPropertyNameback to summary
public String getPropertyName()