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