Package org.hibernate

Class InstantiationException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      InstantiationException​(java.lang.String message, java.lang.Class clazz)
      Constructs a InstantiationException.
      InstantiationException​(java.lang.String message, java.lang.Class clazz, java.lang.Exception cause)
      Constructs a InstantiationException.
      InstantiationException​(java.lang.String message, java.lang.Class clazz, java.lang.Throwable cause)
      Constructs a InstantiationException.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.lang.Class getPersistentClass()
      Deprecated.
      java.lang.Class getUninstantiatableClass()
      Returns the Class we were attempting to instantiate.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InstantiationException

        public InstantiationException​(java.lang.String message,
                                      java.lang.Class clazz,
                                      java.lang.Throwable cause)
        Constructs a InstantiationException.
        Parameters:
        message - A message explaining the exception condition
        clazz - The Class we are attempting to instantiate
        cause - The underlying exception
      • InstantiationException

        public InstantiationException​(java.lang.String message,
                                      java.lang.Class clazz)
        Constructs a InstantiationException.
        Parameters:
        message - A message explaining the exception condition
        clazz - The Class we are attempting to instantiate
      • InstantiationException

        public InstantiationException​(java.lang.String message,
                                      java.lang.Class clazz,
                                      java.lang.Exception cause)
        Constructs a InstantiationException.
        Parameters:
        message - A message explaining the exception condition
        clazz - The Class we are attempting to instantiate
        cause - The underlying exception
    • Method Detail

      • getPersistentClass

        @Deprecated
        public java.lang.Class getPersistentClass()
        Deprecated.
        Returns the Class we were attempting to instantiate.
        Returns:
        The class we are unable to instantiate
      • getUninstantiatableClass

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

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable