public enum ManageBuyOfferResultCode extends java.lang.Enum<ManageBuyOfferResultCode> implements XdrElement
enum ManageBuyOfferResultCode
{
// codes considered as "success" for the operation
MANAGE_BUY_OFFER_SUCCESS = 0,
// codes considered as "failure" for the operation
MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid
MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling
MANAGE_BUY_OFFER_BUY_NO_TRUST = -3, // no trust line for what we're buying
MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED = -4, // not authorized to sell
MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED = -5, // not authorized to buy
MANAGE_BUY_OFFER_LINE_FULL = -6, // can't receive more of what it's buying
MANAGE_BUY_OFFER_UNDERFUNDED = -7, // doesn't hold what it's trying to sell
MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user
MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling
MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying
// update errors
MANAGE_BUY_OFFER_NOT_FOUND =
-11, // offerID does not match an existing offer
MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer
};
| Modifier and Type | Method and Description |
|---|---|
static ManageBuyOfferResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ManageBuyOfferResultCode |
fromXdrBase64(java.lang.String xdr) |
static ManageBuyOfferResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ManageBuyOfferResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ManageBuyOfferResultCode[] |
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 ManageBuyOfferResultCode MANAGE_BUY_OFFER_SUCCESS
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_MALFORMED
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_SELL_NO_TRUST
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_BUY_NO_TRUST
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_LINE_FULL
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_UNDERFUNDED
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_CROSS_SELF
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_SELL_NO_ISSUER
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_BUY_NO_ISSUER
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_NOT_FOUND
public static final ManageBuyOfferResultCode MANAGE_BUY_OFFER_LOW_RESERVE
public static ManageBuyOfferResultCode[] values()
for (ManageBuyOfferResultCode c : ManageBuyOfferResultCode.values()) System.out.println(c);
public static ManageBuyOfferResultCode 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 ManageBuyOfferResultCode 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 ManageBuyOfferResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static ManageBuyOfferResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException