Package org.hibernate
Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.TransactionException
- All Implemented Interfaces:
Serializable
Indicates that a transaction could not be begun, committed
or rolled back.
- See Also:
-
Constructor Summary
ConstructorDescriptionTransactionException
(String message) Constructs aTransactionException
using the specified information.TransactionException
(String message, Throwable cause) Constructs aTransactionException
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
-
Constructor Details
-
TransactionException
Constructs aTransactionException
using the specified information.- Parameters:
message
- The message explaining the exception conditioncause
- The underlying cause
-
TransactionException
Constructs aTransactionException
using the specified information.- Parameters:
message
- The message explaining the exception condition
-