Package org.hibernate

Class AssertionFailure

  • All Implemented Interfaces:
    java.io.Serializable

    public class AssertionFailure
    extends java.lang.RuntimeException
    Indicates failure of an assertion: a possible bug in Hibernate.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AssertionFailure​(java.lang.String message)
      Creates an instance of AssertionFailure using the given message.
      AssertionFailure​(java.lang.String message, java.lang.Throwable cause)
      Creates an instance of AssertionFailure using the given message and underlying cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • AssertionFailure

        public AssertionFailure​(java.lang.String message)
        Creates an instance of AssertionFailure using the given message.
        Parameters:
        message - The message explaining the reason for the exception
      • AssertionFailure

        public AssertionFailure​(java.lang.String message,
                                java.lang.Throwable cause)
        Creates an instance of AssertionFailure using the given message and underlying cause.
        Parameters:
        message - The message explaining the reason for the exception
        cause - The underlying cause.