org.hibernate

Class PropertyValueException

Implemented Interfaces:
Nestable

public class PropertyValueException
extends HibernateException

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

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

PropertyValueException(String s, String entityName, String propertyName)

Method Summary

static String
buildPropertyPath(String parent, String child)
Return a well formed property path.
String
getEntityName()
String
getMessage()
Returns the detail message string of this throwable.
String
getPropertyName()

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

PropertyValueException

public PropertyValueException(String s,
                              String entityName,
                              String propertyName)

Method Details

buildPropertyPath

public static String buildPropertyPath(String parent,
                                       String child)
Return a well formed property path. Basicaly, it will return parent.child
Parameters:
parent - parent in path
child - child in path
Returns:
parent-child path

getEntityName

public String getEntityName()

getMessage

public String getMessage()
Returns the detail message string of this throwable. If it was created with a null message, returns the following: ( cause==null ? null : cause.toString( ).
Specified by:
getMessage in interface Nestable
Overrides:
getMessage in interface NestableRuntimeException

getPropertyName

public String getPropertyName()