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 SummaryConstructors Constructor Description TransactionRequiredException()Constructs a newTransactionRequiredExceptionexception withnullas its detail message.TransactionRequiredException(Exception cause)Constructs a newTransactionRequiredExceptionexception withnullas its detail message.TransactionRequiredException(String message)Constructs a newTransactionRequiredExceptionexception with the specified detail message.TransactionRequiredException(String message, Exception cause)Constructs a newTransactionRequiredExceptionexception with the specified detail message.
 - 
Method Summary- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
TransactionRequiredExceptionpublic TransactionRequiredException() Constructs a newTransactionRequiredExceptionexception withnullas its detail message.
 - 
TransactionRequiredExceptionpublic TransactionRequiredException(Exception cause) Constructs a newTransactionRequiredExceptionexception withnullas its detail message.
 - 
TransactionRequiredExceptionpublic TransactionRequiredException(String message) Constructs a newTransactionRequiredExceptionexception with the specified detail message.- Parameters:
- message- the detail message.
 
 
- 
 
-