Top Description Fields Constructors Methods
org.hibernate

public Class InstantiationException

extends HibernateException
Class Inheritance

Thrown if Hibernate can't instantiate a class at runtime.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final Class<?>

Constructor Summary

AccessConstructor and Description
public
InstantiationException(String
A message explaining the exception condition
message
,
Class<?>
The Class we are attempting to instantiate
clazz
,
Throwable
The underlying exception
cause
)

Constructs an InstantiationException.

public
InstantiationException(String
A message explaining the exception condition
message
,
Class<?>
The Class we are attempting to instantiate
clazz
)

Constructs an InstantiationException.

public
InstantiationException(String
A message explaining the exception condition
message
,
Class<?>
The Class we are attempting to instantiate
clazz
,
Exception
The underlying exception
cause
)

Constructs an InstantiationException.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public Class<?>

Returns:

The class we are unable to instantiate
getUninstantiatableClass
()

Returns the Class we were attempting to instantiate.

Field Detail

clazzback to summary
private final Class<?> clazz

Constructor Detail

InstantiationExceptionback to summary
public InstantiationException(String message, Class<?> clazz, Throwable cause)

Constructs an InstantiationException.

Parameters
message:String

A message explaining the exception condition

clazz:Class<?>

The Class we are attempting to instantiate

cause:Throwable

The underlying exception

InstantiationExceptionback to summary
public InstantiationException(String message, Class<?> clazz)

Constructs an InstantiationException.

Parameters
message:String

A message explaining the exception condition

clazz:Class<?>

The Class we are attempting to instantiate

InstantiationExceptionback to summary
public InstantiationException(String message, Class<?> clazz, Exception cause)

Constructs an InstantiationException.

Parameters
message:String

A message explaining the exception condition

clazz:Class<?>

The Class we are attempting to instantiate

cause:Exception

The underlying exception

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getUninstantiatableClassback to summary
public Class<?> getUninstantiatableClass()

Returns the Class we were attempting to instantiate.

Returns:Class<?>

The class we are unable to instantiate