Class TxnFailureRollback

java.lang.Object
com.github.sttk.sabi.TxnFailureRollback

public class TxnFailureRollback extends Object
Represents the rollback outcome of a data connection during transaction failure processing.

This class encapsulates the state of the rollback (via TxnFailureRollbackState) and any error (Err) encountered when attempting to roll back the connection.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final com.github.sttk.errs.Err
    The error instance associated with a rollback failure, or null if none.
    The transaction failure rollback state indicating the outcome of the rollback.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TxnFailureRollback(TxnFailureRollbackState state, com.github.sttk.errs.Err err)
    Constructs a new TxnFailureRollback with the specified rollback state and error.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string representation of this transaction failure rollback outcome.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • state

      public final TxnFailureRollbackState state
      The transaction failure rollback state indicating the outcome of the rollback.
    • err

      public final com.github.sttk.errs.Err err
      The error instance associated with a rollback failure, or null if none.
  • Constructor Details

    • TxnFailureRollback

      public TxnFailureRollback(TxnFailureRollbackState state, com.github.sttk.errs.Err err)
      Constructs a new TxnFailureRollback with the specified rollback state and error.
      Parameters:
      state - the transaction failure rollback state
      err - the error associated with the rollback failure, or null
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this transaction failure rollback outcome.
      Overrides:
      toString in class Object
      Returns:
      a formatted string containing the rollback state and error details