public enum OperationResultCode extends java.lang.Enum<OperationResultCode> implements XdrElement
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 };
Enum Constant and Description |
---|
opBAD_AUTH |
opEXCEEDED_WORK_LIMIT |
opINNER |
opNO_ACCOUNT |
opNOT_SUPPORTED |
opTOO_MANY_SPONSORING |
opTOO_MANY_SUBENTRIES |
Modifier and Type | Method and Description |
---|---|
static OperationResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static OperationResultCode |
fromXdrBase64(java.lang.String xdr) |
static OperationResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static OperationResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OperationResultCode[] |
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 OperationResultCode opINNER
public static final OperationResultCode opBAD_AUTH
public static final OperationResultCode opNO_ACCOUNT
public static final OperationResultCode opNOT_SUPPORTED
public static final OperationResultCode opTOO_MANY_SUBENTRIES
public static final OperationResultCode opEXCEEDED_WORK_LIMIT
public static final OperationResultCode opTOO_MANY_SPONSORING
public static OperationResultCode[] values()
for (OperationResultCode c : OperationResultCode.values()) System.out.println(c);
public static OperationResultCode 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 OperationResultCode 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 OperationResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static OperationResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException