@LevelUpApi(contract=PUBLIC) public enum ErrorCode extends Enum<ErrorCode>
Error
codes that may be returned by the LevelUp web
service.Enum Constant and Description |
---|
DEBIT_CARD_ONLY
Error code that may be received when the user is debit-only.
|
DELINQUENT_BUNDLE
Error code that may be received when the user has an unpaid balance from a declined card.
|
EXCESSIVE_CHARGEBACKS
Error code that may be received when the user has too many chargebacks from a card.
|
NO_CREDIT_CARD
Error code that may be received when the user has no card on file.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
fromString(String text)
Finds the enumeration matching the input text.
|
String |
toString() |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode DEBIT_CARD_ONLY
public static final ErrorCode DELINQUENT_BUNDLE
public static final ErrorCode EXCESSIVE_CHARGEBACKS
public static final ErrorCode NO_CREDIT_CARD
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 null