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
Thrown by the persistence provider when a transaction is required but is not
active.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTransactionRequiredExceptionexception withnullas its detail message.TransactionRequiredException(String message) Constructs a newTransactionRequiredExceptionexception 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 newTransactionRequiredExceptionexception withnullas its detail message. -
TransactionRequiredException
Constructs a newTransactionRequiredExceptionexception with the specified detail message.- Parameters:
message- the detail message.
-