Package javax.persistence
Class TransactionRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.TransactionRequiredException
- All Implemented Interfaces:
Serializable
Thrown by the persistence provider when a transaction is required but is not
active.
- Since:
- Java Persistence 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newTransactionRequiredException
exception withnull
as its detail message.TransactionRequiredException
(String message) 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 with the specified detail message.- Parameters:
message
- the detail message.
-