Package org.hibernate

Class InstantiationException

All Implemented Interfaces:
Serializable

public class InstantiationException extends HibernateException
Thrown if Hibernate can't instantiate a class at runtime.
See Also:
  • Constructor Details

    • InstantiationException

      public InstantiationException(String message, Class<?> clazz, Throwable cause)
      Constructs an InstantiationException.
      Parameters:
      message - A message explaining the exception condition
      clazz - The Class we are attempting to instantiate
      cause - The underlying exception
    • InstantiationException

      public InstantiationException(String message, Class<?> clazz)
      Constructs an InstantiationException.
      Parameters:
      message - A message explaining the exception condition
      clazz - The Class we are attempting to instantiate
    • InstantiationException

      public InstantiationException(String message, Class<?> clazz, Exception cause)
      Constructs an InstantiationException.
      Parameters:
      message - A message explaining the exception condition
      clazz - The Class we are attempting to instantiate
      cause - The underlying exception
  • Method Details

    • getUninstantiatableClass

      public Class<?> getUninstantiatableClass()
      Returns the Class we were attempting to instantiate.
      Returns:
      The class we are unable to instantiate
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable