Class MismatchingTransactionOutcomeException

All Implemented Interfaces:
Serializable, TraceableException

public class MismatchingTransactionOutcomeException extends TransactionException
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 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 be null).