Package org.apache.ignite.tx
Class MismatchingTransactionOutcomeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.ignite.lang.IgniteException
org.apache.ignite.tx.TransactionException
org.apache.ignite.tx.MismatchingTransactionOutcomeException
- All Implemented Interfaces:
Serializable,TraceableException
The exception is thrown when the transaction result differs from the intended one.
For example, tx.commit() is called for a transaction, but the verification logic decided to abort it instead. The transaction
will be aborted and the call to tx.commit() will throw this exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMismatchingTransactionOutcomeException(UUID traceId, int code, String message, @Nullable Throwable cause) Constructs a new instance. -
Method Summary
Methods inherited from class org.apache.ignite.lang.IgniteException
code, codeAsString, errorCode, groupCode, groupName, toString, traceIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MismatchingTransactionOutcomeException
public MismatchingTransactionOutcomeException(UUID traceId, int code, String message, @Nullable @Nullable Throwable cause) Constructs a new instance.- Parameters:
traceId- Trace ID.code- Full error code.message- Error message.cause- The Throwable that is the cause of this exception (can benull).
-