Package org.stellar.sdk.xdr
Enum Class SCErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<SCErrorCode>
,Constable
SCErrorCode's original definition in the XDR file is:
enum SCErrorCode { SCEC_ARITH_DOMAIN = 0, // Some arithmetic was undefined (overflow, divide-by-zero). SCEC_INDEX_BOUNDS = 1, // Something was indexed beyond its bounds. SCEC_INVALID_INPUT = 2, // User provided some otherwise-bad data. SCEC_MISSING_VALUE = 3, // Some value was required but not provided. SCEC_EXISTING_VALUE = 4, // Some value was provided where not allowed. SCEC_EXCEEDED_LIMIT = 5, // Some arbitrary limit -- gas or otherwise -- was hit. SCEC_INVALID_ACTION = 6, // Data was valid but action requested was not. SCEC_INTERNAL_ERROR = 7, // The host detected an error in its own logic. SCEC_UNEXPECTED_TYPE = 8, // Some type wasn't as expected. SCEC_UNEXPECTED_SIZE = 9 // Something's size wasn't as expected. };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SCErrorCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static SCErrorCode
fromXdrBase64
(String xdr) static SCErrorCode
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static SCErrorCode
Returns the enum constant of this class with the specified name.static SCErrorCode[]
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
-
SCEC_ARITH_DOMAIN
-
SCEC_INDEX_BOUNDS
-
SCEC_INVALID_INPUT
-
SCEC_MISSING_VALUE
-
SCEC_EXISTING_VALUE
-
SCEC_EXCEEDED_LIMIT
-
SCEC_INVALID_ACTION
-
SCEC_INTERNAL_ERROR
-
SCEC_UNEXPECTED_TYPE
-
SCEC_UNEXPECTED_SIZE
-
-
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
-