public enum InvokeHostFunctionResultCode extends java.lang.Enum<InvokeHostFunctionResultCode> implements XdrElement
enum InvokeHostFunctionResultCode { // codes considered as "success" for the operation INVOKE_HOST_FUNCTION_SUCCESS = 0, // codes considered as "failure" for the operation INVOKE_HOST_FUNCTION_MALFORMED = -1, INVOKE_HOST_FUNCTION_TRAPPED = -2, INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED = -3, INVOKE_HOST_FUNCTION_ENTRY_ARCHIVED = -4, INVOKE_HOST_FUNCTION_INSUFFICIENT_REFUNDABLE_FEE = -5 };
Modifier and Type | Method and Description |
---|---|
static InvokeHostFunctionResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static InvokeHostFunctionResultCode |
fromXdrBase64(java.lang.String xdr) |
static InvokeHostFunctionResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static InvokeHostFunctionResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvokeHostFunctionResultCode[] |
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 InvokeHostFunctionResultCode INVOKE_HOST_FUNCTION_SUCCESS
public static final InvokeHostFunctionResultCode INVOKE_HOST_FUNCTION_MALFORMED
public static final InvokeHostFunctionResultCode INVOKE_HOST_FUNCTION_TRAPPED
public static final InvokeHostFunctionResultCode INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED
public static final InvokeHostFunctionResultCode INVOKE_HOST_FUNCTION_ENTRY_ARCHIVED
public static final InvokeHostFunctionResultCode INVOKE_HOST_FUNCTION_INSUFFICIENT_REFUNDABLE_FEE
public static InvokeHostFunctionResultCode[] values()
for (InvokeHostFunctionResultCode c : InvokeHostFunctionResultCode.values()) System.out.println(c);
public static InvokeHostFunctionResultCode 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 InvokeHostFunctionResultCode 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 InvokeHostFunctionResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static InvokeHostFunctionResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException