Class PostTransactionOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pyranid.PostTransactionOperationException
- All Implemented Interfaces:
Serializable
Thrown when a post-transaction operation fails.
The getTransactionResult() value describes how the transaction completed before the post-transaction operation
failed. For example, TransactionResult.COMMITTED means the transaction commit completed successfully, even though
a post-transaction operation failed afterwards.
- Since:
- 4.2.0
- Author:
- Mark Allen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPostTransactionOperationException(@NonNull TransactionResult transactionResult, @NonNull Throwable cause) Creates aPostTransactionOperationExceptionfor a failed post-transaction operation. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PostTransactionOperationException
public PostTransactionOperationException(@NonNull TransactionResult transactionResult, @NonNull Throwable cause) Creates aPostTransactionOperationExceptionfor a failed post-transaction operation.- Parameters:
transactionResult- the transaction result supplied to the failed post-transaction operationcause- the post-transaction operation failure
-
-
Method Details
-
getTransactionResult
- Returns:
- the transaction result supplied to the failed post-transaction operation
-