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
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(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 Detail
-
TransactionException
public TransactionException(String message, Throwable cause)
Constructs aTransactionException
using the specified information.- Parameters:
message
- The message explaining the exception conditioncause
- The underlying cause
-
TransactionException
public TransactionException(String message)
Constructs aTransactionException
using the specified information.- Parameters:
message
- The message explaining the exception condition
-
-