public enum SetOptionsResultCode extends java.lang.Enum<SetOptionsResultCode> implements XdrElement
enum SetOptionsResultCode
{
// codes considered as "success" for the operation
SET_OPTIONS_SUCCESS = 0,
// codes considered as "failure" for the operation
SET_OPTIONS_LOW_RESERVE = -1, // not enough funds to add a signer
SET_OPTIONS_TOO_MANY_SIGNERS = -2, // max number of signers already reached
SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags
SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist
SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option
SET_OPTIONS_UNKNOWN_FLAG = -6, // can't set an unknown flag
SET_OPTIONS_THRESHOLD_OUT_OF_RANGE = -7, // bad value for weight/threshold
SET_OPTIONS_BAD_SIGNER = -8, // signer cannot be masterkey
SET_OPTIONS_INVALID_HOME_DOMAIN = -9, // malformed home domain
SET_OPTIONS_AUTH_REVOCABLE_REQUIRED =
-10 // auth revocable is required for clawback
};
| Modifier and Type | Method and Description |
|---|---|
static SetOptionsResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static SetOptionsResultCode |
fromXdrBase64(java.lang.String xdr) |
static SetOptionsResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static SetOptionsResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SetOptionsResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoXdrBase64, toXdrByteArraypublic static final SetOptionsResultCode SET_OPTIONS_SUCCESS
public static final SetOptionsResultCode SET_OPTIONS_LOW_RESERVE
public static final SetOptionsResultCode SET_OPTIONS_TOO_MANY_SIGNERS
public static final SetOptionsResultCode SET_OPTIONS_BAD_FLAGS
public static final SetOptionsResultCode SET_OPTIONS_INVALID_INFLATION
public static final SetOptionsResultCode SET_OPTIONS_CANT_CHANGE
public static final SetOptionsResultCode SET_OPTIONS_UNKNOWN_FLAG
public static final SetOptionsResultCode SET_OPTIONS_THRESHOLD_OUT_OF_RANGE
public static final SetOptionsResultCode SET_OPTIONS_BAD_SIGNER
public static final SetOptionsResultCode SET_OPTIONS_INVALID_HOME_DOMAIN
public static final SetOptionsResultCode SET_OPTIONS_AUTH_REVOCABLE_REQUIRED
public static SetOptionsResultCode[] values()
for (SetOptionsResultCode c : SetOptionsResultCode.values()) System.out.println(c);
public static SetOptionsResultCode 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 SetOptionsResultCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static SetOptionsResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static SetOptionsResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException