Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate
Class PropertyValueException  view PropertyValueException download PropertyValueException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.hibernate.exception.NestableRuntimeException
                  extended byorg.hibernate.HibernateException
                      extended byorg.hibernate.PropertyValueException
All Implemented Interfaces:
org.hibernate.exception.Nestable, java.io.Serializable

public class PropertyValueException
extends HibernateException

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


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.String entityName
           
private  java.lang.String propertyName
           
 
Fields inherited from class org.hibernate.exception.NestableRuntimeException
delegate
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
PropertyValueException(java.lang.String s, java.lang.String entityName, java.lang.String propertyName)
           
 
Method Summary
static java.lang.String buildPropertyPath(java.lang.String parent, java.lang.String child)
          Return a well formed property path.
 java.lang.String getEntityName()
           
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 java.lang.String getPropertyName()
           
 
Methods inherited from class org.hibernate.exception.NestableRuntimeException
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entityName

private final java.lang.String entityName

propertyName

private final java.lang.String propertyName
Constructor Detail

PropertyValueException

public PropertyValueException(java.lang.String s,
                              java.lang.String entityName,
                              java.lang.String propertyName)
Method Detail

getEntityName

public java.lang.String getEntityName()

getPropertyName

public java.lang.String getPropertyName()

getMessage

public java.lang.String getMessage()
Description copied from class: org.hibernate.exception.NestableRuntimeException
Returns the detail message string of this throwable. If it was created with a null message, returns the following: ( cause==null ? null : cause.toString( ).


buildPropertyPath

public static java.lang.String buildPropertyPath(java.lang.String parent,
                                                 java.lang.String child)
Return a well formed property path. Basicaly, it will return parent.child