public enum SCErrorType extends java.lang.Enum<SCErrorType> implements XdrElement
enum SCErrorType { SCE_CONTRACT = 0, // Contract-specific, user-defined codes. SCE_WASM_VM = 1, // Errors while interpreting WASM bytecode. SCE_CONTEXT = 2, // Errors in the contract's host context. SCE_STORAGE = 3, // Errors accessing host storage. SCE_OBJECT = 4, // Errors working with host objects. SCE_CRYPTO = 5, // Errors in cryptographic operations. SCE_EVENTS = 6, // Errors while emitting events. SCE_BUDGET = 7, // Errors relating to budget limits. SCE_VALUE = 8, // Errors working with host values or SCVals. SCE_AUTH = 9 // Errors from the authentication subsystem. };
Enum Constant and Description |
---|
SCE_AUTH |
SCE_BUDGET |
SCE_CONTEXT |
SCE_CONTRACT |
SCE_CRYPTO |
SCE_EVENTS |
SCE_OBJECT |
SCE_STORAGE |
SCE_VALUE |
SCE_WASM_VM |
Modifier and Type | Method and Description |
---|---|
static SCErrorType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static SCErrorType |
fromXdrBase64(java.lang.String xdr) |
static SCErrorType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static SCErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SCErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final SCErrorType SCE_CONTRACT
public static final SCErrorType SCE_WASM_VM
public static final SCErrorType SCE_CONTEXT
public static final SCErrorType SCE_STORAGE
public static final SCErrorType SCE_OBJECT
public static final SCErrorType SCE_CRYPTO
public static final SCErrorType SCE_EVENTS
public static final SCErrorType SCE_BUDGET
public static final SCErrorType SCE_VALUE
public static final SCErrorType SCE_AUTH
public static SCErrorType[] values()
for (SCErrorType c : SCErrorType.values()) System.out.println(c);
public static SCErrorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static SCErrorType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SCErrorType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SCErrorType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException