public class InstantiationException extends HibernateException
Thrown if Hibernate can’t instantiate a class at runtime.
Constructor and Description |
---|
InstantiationException(String message,
Class clazz)
Constructs a InstantiationException.
|
InstantiationException(String message,
Class clazz,
Exception cause)
Constructs a InstantiationException.
|
InstantiationException(String message,
Class clazz,
Throwable cause)
Constructs a InstantiationException.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Class |
getPersistentClass()
Deprecated.
Use
getUninstantiatableClass() instead |
Class |
getUninstantiatableClass()
Returns the Class we were attempting to instantiate.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InstantiationException(String message, Class clazz, Throwable cause)
Constructs a InstantiationException.
message
- A message explaining the exception conditionclazz
- The Class we are attempting to instantiatecause
- The underlying exceptionpublic InstantiationException(String message, Class clazz)
Constructs a InstantiationException.
message
- A message explaining the exception conditionclazz
- The Class we are attempting to instantiate@Deprecated public Class getPersistentClass()
getUninstantiatableClass()
insteadReturns the Class we were attempting to instantiate.
public Class getUninstantiatableClass()
Returns the Class we were attempting to instantiate.
public String getMessage()
getMessage
in class Throwable
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.