Enum Class TxnFailureCauseState

java.lang.Object
java.lang.Enum<TxnFailureCauseState>
com.github.sttk.sabi.TxnFailureCauseState
All Implemented Interfaces:
Serializable, Comparable<TxnFailureCauseState>, Constable

public enum TxnFailureCauseState extends Enum<TxnFailureCauseState>
Defines the states representing causes of transaction failures or successful states.
  • Enum Constant Details

    • NoneByCommitted

      public static final TxnFailureCauseState NoneByCommitted
      Indicates no failure occurred and the connection was committed successfully.
    • NoneByUncommitted

      public static final TxnFailureCauseState NoneByUncommitted
      Indicates no failure occurred and the connection remained uncommitted.
    • LogicFailure

      public static final TxnFailureCauseState LogicFailure
      Indicates that the transaction failed due to an error during logic execution.
    • CommitFailure

      public static final TxnFailureCauseState CommitFailure
      Indicates that the transaction failed during the commit phase of a connection.
    • PostCommitFailure

      public static final TxnFailureCauseState PostCommitFailure
      Indicates that the transaction failed during the post-commit phase of a connection.
  • Method Details

    • values

      public static TxnFailureCauseState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TxnFailureCauseState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null