Package org.stellar.sdk.xdr
Enum Class PathPaymentStrictSendResultCode
- All Implemented Interfaces:
Serializable
,Comparable<PathPaymentStrictSendResultCode>
,Constable
PathPaymentStrictSendResultCode's original definition in the XDR file is:
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 };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiondecode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
Returns the enum constant of this class with the specified name.static PathPaymentStrictSendResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PATH_PAYMENT_STRICT_SEND_SUCCESS
-
PATH_PAYMENT_STRICT_SEND_MALFORMED
-
PATH_PAYMENT_STRICT_SEND_UNDERFUNDED
-
PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST
-
PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED
-
PATH_PAYMENT_STRICT_SEND_NO_DESTINATION
-
PATH_PAYMENT_STRICT_SEND_NO_TRUST
-
PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED
-
PATH_PAYMENT_STRICT_SEND_LINE_FULL
-
PATH_PAYMENT_STRICT_SEND_NO_ISSUER
-
PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS
-
PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF
-
PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-