Package org.stellar.sdk.xdr
Enum Class TransactionResultCode
- All Implemented Interfaces:
Serializable
,Comparable<TransactionResultCode>
,Constable
TransactionResultCode's original definition in the XDR file is:
enum TransactionResultCode { txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded txSUCCESS = 0, // all operations succeeded txFAILED = -1, // one of the operations failed (none were applied) txTOO_EARLY = -2, // ledger closeTime before minTime txTOO_LATE = -3, // ledger closeTime after maxTime txMISSING_OPERATION = -4, // no operation was specified txBAD_SEQ = -5, // sequence number does not match source account txBAD_AUTH = -6, // too few valid signatures / wrong network txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve txNO_ACCOUNT = -8, // source account not found txINSUFFICIENT_FEE = -9, // fee is too small txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction txINTERNAL_ERROR = -11, // an unknown error occurred txNOT_SUPPORTED = -12, // transaction type not supported txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed txBAD_SPONSORSHIP = -14, // sponsorship not confirmed txBAD_MIN_SEQ_AGE_OR_GAP = -15, // minSeqAge or minSeqLedgerGap conditions not met txMALFORMED = -16, // precondition is invalid txSOROBAN_INVALID = -17 // soroban-specific preconditions were not met };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionResultCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static TransactionResultCode
fromXdrBase64
(String xdr) static TransactionResultCode
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static TransactionResultCode
Returns the enum constant of this class with the specified name.static TransactionResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
txFEE_BUMP_INNER_SUCCESS
-
txSUCCESS
-
txFAILED
-
txTOO_EARLY
-
txTOO_LATE
-
txMISSING_OPERATION
-
txBAD_SEQ
-
txBAD_AUTH
-
txINSUFFICIENT_BALANCE
-
txNO_ACCOUNT
-
txINSUFFICIENT_FEE
-
txBAD_AUTH_EXTRA
-
txINTERNAL_ERROR
-
txNOT_SUPPORTED
-
txFEE_BUMP_INNER_FAILED
-
txBAD_SPONSORSHIP
-
txBAD_MIN_SEQ_AGE_OR_GAP
-
txMALFORMED
-
txSOROBAN_INVALID
-
-
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
-
getValue
public int getValue() -
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-