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<T>

Constructor Summary

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

Constructs a InstantiationException.

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

Constructs a InstantiationException.

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

Constructs a 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<T>

Returns:

The class we are unable to instantiate
getPersistentClass
()

Deprecated Use getUninstantiatableClass instead
Returns the Class we were attempting to instantiate.
public Class<T>

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<T> clazz

Constructor Detail

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

Constructs a InstantiationException.

Parameters
message:String

A message explaining the exception condition

clazz:Class<T>

The Class we are attempting to instantiate

cause:Throwable

The underlying exception

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

Constructs a InstantiationException.

Parameters
message:String

A message explaining the exception condition

clazz:Class<T>

The Class we are attempting to instantiate

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

Constructs a InstantiationException.

Parameters
message:String

A message explaining the exception condition

clazz:Class<T>

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
getPersistentClassback to summary
public Class<T> getPersistentClass()

Deprecated

Use getUninstantiatableClass instead

Returns the Class we were attempting to instantiate.

Returns:Class<T>

The class we are unable to instantiate

Annotations
@Deprecated
getUninstantiatableClassback to summary
public Class<T> getUninstantiatableClass()

Returns the Class we were attempting to instantiate.

Returns:Class<T>

The class we are unable to instantiate