Package org.stellar.sdk.xdr
Enum Class PathPaymentStrictReceiveResultCode
java.lang.Object
java.lang.Enum<PathPaymentStrictReceiveResultCode>
org.stellar.sdk.xdr.PathPaymentStrictReceiveResultCode
- All Implemented Interfaces:
Serializable,Comparable<PathPaymentStrictReceiveResultCode>,Constable,XdrElement
public enum PathPaymentStrictReceiveResultCode
extends Enum<PathPaymentStrictReceiveResultCode>
implements XdrElement
PathPaymentStrictReceiveResultCode's original definition in the XDR file is:
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
};
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiondecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) fromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) intgetValue()Returns the enum constant of this class with the specified name.static PathPaymentStrictReceiveResultCode[]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, valueOfMethods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Enum Constant Details
-
PATH_PAYMENT_STRICT_RECEIVE_SUCCESS
-
PATH_PAYMENT_STRICT_RECEIVE_MALFORMED
-
PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED
-
PATH_PAYMENT_STRICT_RECEIVE_SRC_NO_TRUST
-
PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED
public static final PathPaymentStrictReceiveResultCode PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED -
PATH_PAYMENT_STRICT_RECEIVE_NO_DESTINATION
-
PATH_PAYMENT_STRICT_RECEIVE_NO_TRUST
-
PATH_PAYMENT_STRICT_RECEIVE_NOT_AUTHORIZED
-
PATH_PAYMENT_STRICT_RECEIVE_LINE_FULL
-
PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER
-
PATH_PAYMENT_STRICT_RECEIVE_TOO_FEW_OFFERS
-
PATH_PAYMENT_STRICT_RECEIVE_OFFER_CROSS_SELF
-
PATH_PAYMENT_STRICT_RECEIVE_OVER_SENDMAX
-
-
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
public static PathPaymentStrictReceiveResultCode decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-