public enum PathPaymentStrictSendResultCode extends java.lang.Enum<PathPaymentStrictSendResultCode> implements XdrElement
enum PathPaymentStrictSendResultCode
{
// codes considered as "success" for the operation
PATH_PAYMENT_STRICT_SEND_SUCCESS = 0, // success
// codes considered as "failure" for the operation
PATH_PAYMENT_STRICT_SEND_MALFORMED = -1, // bad input
PATH_PAYMENT_STRICT_SEND_UNDERFUNDED =
-2, // not enough funds in source account
PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST =
-3, // no trust line on source account
PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED =
-4, // source not authorized to transfer
PATH_PAYMENT_STRICT_SEND_NO_DESTINATION =
-5, // destination account does not exist
PATH_PAYMENT_STRICT_SEND_NO_TRUST =
-6, // dest missing a trust line for asset
PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED =
-7, // dest not authorized to hold asset
PATH_PAYMENT_STRICT_SEND_LINE_FULL = -8, // dest would go above their limit
PATH_PAYMENT_STRICT_SEND_NO_ISSUER = -9, // missing issuer on one asset
PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS =
-10, // not enough offers to satisfy path
PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF =
-11, // would cross one of its own offers
PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN = -12 // could not satisfy destMin
};
| Modifier and Type | Method and Description |
|---|---|
static PathPaymentStrictSendResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static PathPaymentStrictSendResultCode |
fromXdrBase64(java.lang.String xdr) |
static PathPaymentStrictSendResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static PathPaymentStrictSendResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PathPaymentStrictSendResultCode[] |
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 PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_SUCCESS
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_MALFORMED
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_UNDERFUNDED
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_NO_DESTINATION
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_NO_TRUST
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_LINE_FULL
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_NO_ISSUER
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF
public static final PathPaymentStrictSendResultCode PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN
public static PathPaymentStrictSendResultCode[] values()
for (PathPaymentStrictSendResultCode c : PathPaymentStrictSendResultCode.values()) System.out.println(c);
public static PathPaymentStrictSendResultCode 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 PathPaymentStrictSendResultCode 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 PathPaymentStrictSendResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictSendResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException