org.hibernate

Class PropertyAccessException

Implemented Interfaces:
Nestable

public class PropertyAccessException
extends HibernateException

A problem occurred accessing a property of an instance of a persistent class by reflection, or via CGLIB. There are a number of possible underlying causes, including
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

PropertyAccessException(Throwable root, String s, boolean wasSetter, Class persistentClass, String propertyName)

Method Summary

String
getMessage()
Returns the detail message string of this throwable.
Class
getPersistentClass()
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

PropertyAccessException

public PropertyAccessException(Throwable root,
                               String s,
                               boolean wasSetter,
                               Class persistentClass,
                               String propertyName)

Method Details

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

getPersistentClass

public Class getPersistentClass()

getPropertyName

public String getPropertyName()