org.hibernate

Class InstantiationException

Implemented Interfaces:
Nestable

public class InstantiationException
extends HibernateException

Thrown if Hibernate can't instantiate an entity or component class at runtime.
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

InstantiationException(String s, Class clazz)
InstantiationException(String s, Class clazz, Exception e)
InstantiationException(String s, Class clazz, Throwable root)

Method Summary

String
getMessage()
Returns the detail message string of this throwable.
Class
getPersistentClass()

Methods inherited from class org.hibernate.exception.NestableRuntimeException

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

Constructor Details

InstantiationException

public InstantiationException(String s,
                              Class clazz)

InstantiationException

public InstantiationException(String s,
                              Class clazz,
                              Exception e)

InstantiationException

public InstantiationException(String s,
                              Class clazz,
                              Throwable root)

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()