public enum PathPaymentStrictReceiveResultCode extends java.lang.Enum<PathPaymentStrictReceiveResultCode> implements XdrElement
enum PathPaymentStrictReceiveResultCode { // codes considered as "success" for the operation PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success // codes considered as "failure" for the operation PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED = -2, // not enough funds in source account PATH_PAYMENT_STRICT_RECEIVE_SRC_NO_TRUST = -3, // no trust line on source account PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED = -4, // source not authorized to transfer PATH_PAYMENT_STRICT_RECEIVE_NO_DESTINATION = -5, // destination account does not exist PATH_PAYMENT_STRICT_RECEIVE_NO_TRUST = -6, // dest missing a trust line for asset PATH_PAYMENT_STRICT_RECEIVE_NOT_AUTHORIZED = -7, // dest not authorized to hold asset PATH_PAYMENT_STRICT_RECEIVE_LINE_FULL = -8, // dest would go above their limit PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER = -9, // missing issuer on one asset PATH_PAYMENT_STRICT_RECEIVE_TOO_FEW_OFFERS = -10, // not enough offers to satisfy path PATH_PAYMENT_STRICT_RECEIVE_OFFER_CROSS_SELF = -11, // would cross one of its own offers PATH_PAYMENT_STRICT_RECEIVE_OVER_SENDMAX = -12 // could not satisfy sendmax };
Modifier and Type | Method and Description |
---|---|
static PathPaymentStrictReceiveResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static PathPaymentStrictReceiveResultCode |
fromXdrBase64(java.lang.String xdr) |
static PathPaymentStrictReceiveResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static PathPaymentStrictReceiveResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PathPaymentStrictReceiveResultCode[] |
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 PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_SUCCESS
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_MALFORMED
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_SRC_NO_TRUST
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_NO_DESTINATION
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_NO_TRUST
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_NOT_AUTHORIZED
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_LINE_FULL
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_TOO_FEW_OFFERS
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_OFFER_CROSS_SELF
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_OVER_SENDMAX
public static PathPaymentStrictReceiveResultCode[] values()
for (PathPaymentStrictReceiveResultCode c : PathPaymentStrictReceiveResultCode.values()) System.out.println(c);
public static PathPaymentStrictReceiveResultCode 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 PathPaymentStrictReceiveResultCode 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 PathPaymentStrictReceiveResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PathPaymentStrictReceiveResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException