java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
jakarta.persistence.TransactionRequiredException
- All Implemented Interfaces:
Serializable
Thrown by the persistence provider when a transaction is required but is not
active.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newTransactionRequiredException
exception withnull
as its detail message.Constructs a newTransactionRequiredException
exception withnull
as its detail message.TransactionRequiredException
(String message) Constructs a newTransactionRequiredException
exception with the specified detail message.TransactionRequiredException
(String message, Exception cause) Constructs a newTransactionRequiredException
exception with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionRequiredException
public TransactionRequiredException()Constructs a newTransactionRequiredException
exception withnull
as its detail message. -
TransactionRequiredException
Constructs a newTransactionRequiredException
exception withnull
as its detail message. -
TransactionRequiredException
Constructs a newTransactionRequiredException
exception with the specified detail message.- Parameters:
message
- the detail message.
-
TransactionRequiredException
Constructs a newTransactionRequiredException
exception with the specified detail message.- Parameters:
message
- the detail message.
-