Package org.hibernate

Class TransactionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TransactionException
    extends HibernateException
    Indicates that a transaction could not be begun, committed or rolled back.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionException​(java.lang.String message)
      Constructs a TransactionException using the specified information.
      TransactionException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a TransactionException using the specified information.
    • 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

      • TransactionException

        public TransactionException​(java.lang.String message,
                                    java.lang.Throwable cause)
        Constructs a TransactionException using the specified information.
        Parameters:
        message - The message explaining the exception condition
        cause - The underlying cause
      • TransactionException

        public TransactionException​(java.lang.String message)
        Constructs a TransactionException using the specified information.
        Parameters:
        message - The message explaining the exception condition