Class TxnFailureCause

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

public class TxnFailureCause extends Object
Represents the cause of a transaction failure, containing state information and the associated error.

This class encapsulates the phase or status in which a transaction failure occurred (via TxnFailureCauseState) and the specific Err instance detailing the failure.

  • Field Summary

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

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

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

    Methods inherited from class Object

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

    • state

      public final TxnFailureCauseState state
      The transaction failure cause state indicating the phase or status of the failure.
    • err

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

    • TxnFailureCause

      public TxnFailureCause(TxnFailureCauseState state, com.github.sttk.errs.Err err)
      Constructs a new TxnFailureCause with the specified failure state and error.
      Parameters:
      state - the transaction failure cause state
      err - the error associated with the failure
  • Method Details

    • toString

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