Enum Class TxnFailureCauseState
- All Implemented Interfaces:
Serializable, Comparable<TxnFailureCauseState>, Constable
Defines the states representing causes of transaction failures or successful states.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the transaction failed during the commit phase of a connection.Indicates that the transaction failed due to an error during logic execution.Indicates no failure occurred and the connection was committed successfully.Indicates no failure occurred and the connection remained uncommitted.Indicates that the transaction failed during the post-commit phase of a connection. -
Method Summary
Modifier and TypeMethodDescriptionstatic TxnFailureCauseStateReturns the enum constant of this class with the specified name.static TxnFailureCauseState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NoneByCommitted
Indicates no failure occurred and the connection was committed successfully. -
NoneByUncommitted
Indicates no failure occurred and the connection remained uncommitted. -
LogicFailure
Indicates that the transaction failed due to an error during logic execution. -
CommitFailure
Indicates that the transaction failed during the commit phase of a connection. -
PostCommitFailure
Indicates that the transaction failed during the post-commit phase of a connection.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-