Package org.hibernate
Class InstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.InstantiationException
- All Implemented Interfaces:
Serializable
Thrown if Hibernate can't instantiate a class at runtime.
- See Also:
-
Constructor Summary
ConstructorDescriptionInstantiationException
(String message, Class<?> clazz) Constructs anInstantiationException
.InstantiationException
(String message, Class<?> clazz, Exception cause) Constructs anInstantiationException
.InstantiationException
(String message, Class<?> clazz, Throwable cause) Constructs anInstantiationException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InstantiationException
Constructs anInstantiationException
.- Parameters:
message
- A message explaining the exception conditionclazz
- The Class we are attempting to instantiatecause
- The underlying exception
-
InstantiationException
Constructs anInstantiationException
.- Parameters:
message
- A message explaining the exception conditionclazz
- The Class we are attempting to instantiate
-
InstantiationException
Constructs anInstantiationException
.- Parameters:
message
- A message explaining the exception conditionclazz
- The Class we are attempting to instantiatecause
- The underlying exception
-
-
Method Details
-
getUninstantiatableClass
Returns theClass
we were attempting to instantiate.- Returns:
- The class we are unable to instantiate
-
getMessage
- Overrides:
getMessage
in classThrowable
-