Package jakarta.persistence
Class TransactionRequiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- jakarta.persistence.TransactionRequiredException
-
- All Implemented Interfaces:
Serializable
public class TransactionRequiredException extends PersistenceException
Thrown by the persistence provider when a transaction is required but is not active.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransactionRequiredException()
Constructs a newTransactionRequiredException
exception withnull
as its detail message.TransactionRequiredException(Exception cause)
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 Detail
-
TransactionRequiredException
public TransactionRequiredException()
Constructs a newTransactionRequiredException
exception withnull
as its detail message.
-
TransactionRequiredException
public TransactionRequiredException(Exception cause)
Constructs a newTransactionRequiredException
exception withnull
as its detail message.
-
TransactionRequiredException
public TransactionRequiredException(String message)
Constructs a newTransactionRequiredException
exception with the specified detail message.- Parameters:
message
- the detail message.
-
-