@LevelUpApi(contract=PUBLIC) public enum ErrorObject extends Enum<ErrorObject>
Error objects that may be returned by the web service.| Enum Constant and Description |
|---|
CREDIT_CARD
Error object that may be received when the user is debit-only.
|
PAYMENT_TOKEN
Error object that may be received when the user's card has an issue.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorObject |
fromString(String text)
Finds the enumeration matching the input text.
|
String |
toString() |
static ErrorObject |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorObject[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorObject CREDIT_CARD
public static final ErrorObject PAYMENT_TOKEN
public static ErrorObject[] values()
for (ErrorObject c : ErrorObject.values()) System.out.println(c);
public static ErrorObject valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<ErrorObject>public static ErrorObject fromString(String text)
text - the enumeration text to find.