Package org.stellar.sdk.xdr
Enum Class OperationResultCode
- All Implemented Interfaces:
Serializable
,Comparable<OperationResultCode>
,Constable
OperationResultCode's original definition in the XDR file is:
enum OperationResultCode { opINNER = 0, // inner object result is valid opBAD_AUTH = -1, // too few valid signatures / wrong network opNO_ACCOUNT = -2, // source account was not found opNOT_SUPPORTED = -3, // operation not supported at this time opTOO_MANY_SUBENTRIES = -4, // max number of subentries already reached opEXCEEDED_WORK_LIMIT = -5, // operation did too much work opTOO_MANY_SPONSORING = -6 // account is sponsoring too many entries };
-
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 OperationResultCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static OperationResultCode
fromXdrBase64
(String xdr) static OperationResultCode
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static OperationResultCode
Returns the enum constant of this class with the specified name.static OperationResultCode[]
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
-
opINNER
-
opBAD_AUTH
-
opNO_ACCOUNT
-
opNOT_SUPPORTED
-
opTOO_MANY_SUBENTRIES
-
opEXCEEDED_WORK_LIMIT
-
opTOO_MANY_SPONSORING
-
-
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
-