Package javax.cache.transaction
Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.cache.CacheException
javax.cache.transaction.TransactionException
- All Implemented Interfaces:
Serializable
A transaction exception.
- Since:
- 1.0
- Author:
- Greg Luck
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new TransactionException.TransactionException(String message) Constructs a new TransactionException with a message string.TransactionException(String message, Throwable cause) Constructs a TransactionException with a message string, and a base exceptionTransactionException(Throwable cause) Constructs a new TransactionException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionException
public TransactionException()Constructs a new TransactionException.- Since:
- 1.0
-
TransactionException
Constructs a new TransactionException with a message string.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.- Since:
- 1.0
-
TransactionException
Constructs a TransactionException with a message string, and a base exception- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.0
-
TransactionException
Constructs a new TransactionException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.0
-