Package org.hibernate
Class InstantiationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.InstantiationException
-
- All Implemented Interfaces:
java.io.Serializable
public class InstantiationException extends HibernateException
Thrown if Hibernate can't instantiate a class at runtime.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstantiationException(java.lang.String message, java.lang.Class clazz)Constructs a InstantiationException.InstantiationException(java.lang.String message, java.lang.Class clazz, java.lang.Exception cause)Constructs a InstantiationException.InstantiationException(java.lang.String message, java.lang.Class clazz, java.lang.Throwable cause)Constructs a InstantiationException.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetMessage()java.lang.ClassgetPersistentClass()Deprecated.UsegetUninstantiatableClass()insteadjava.lang.ClassgetUninstantiatableClass()Returns the Class we were attempting to instantiate.
-
-
-
Constructor Detail
-
InstantiationException
public InstantiationException(java.lang.String message, java.lang.Class clazz, java.lang.Throwable cause)Constructs a InstantiationException.- Parameters:
message- A message explaining the exception conditionclazz- The Class we are attempting to instantiatecause- The underlying exception
-
InstantiationException
public InstantiationException(java.lang.String message, java.lang.Class clazz)Constructs a InstantiationException.- Parameters:
message- A message explaining the exception conditionclazz- The Class we are attempting to instantiate
-
InstantiationException
public InstantiationException(java.lang.String message, java.lang.Class clazz, java.lang.Exception cause)Constructs a InstantiationException.- Parameters:
message- A message explaining the exception conditionclazz- The Class we are attempting to instantiatecause- The underlying exception
-
-
Method Detail
-
getPersistentClass
@Deprecated public java.lang.Class getPersistentClass()
Deprecated.UsegetUninstantiatableClass()insteadReturns the Class we were attempting to instantiate.- Returns:
- The class we are unable to instantiate
-
getUninstantiatableClass
public java.lang.Class getUninstantiatableClass()
Returns the Class we were attempting to instantiate.- Returns:
- The class we are unable to instantiate
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-