public class InstantiationException extends HibernateException
| 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, toStringpublic InstantiationException(String message, Class clazz, Throwable cause)
message - A message explaining the exception conditionclazz - The Class we are attempting to instantiatecause - The underlying exceptionpublic InstantiationException(String message, Class clazz)
message - A message explaining the exception conditionclazz - The Class we are attempting to instantiate@Deprecated public Class getPersistentClass()
getUninstantiatableClass() insteadpublic Class getUninstantiatableClass()
public String getMessage()
getMessage in class ThrowableCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.