public static enum Prompt.ErrorType extends Enum<Prompt.ErrorType>
Enum Constant and Description |
---|
INTERNAL_ERROR |
INVALID_CARD_NUMBER |
INVALID_CARD_TYPE |
INVALID_DATE |
INVALID_SECURITY_CODE |
TIMEOUT |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static Prompt.ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Prompt.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Prompt.ErrorType TIMEOUT
public static final Prompt.ErrorType INVALID_CARD_NUMBER
public static final Prompt.ErrorType INVALID_CARD_TYPE
public static final Prompt.ErrorType INVALID_DATE
public static final Prompt.ErrorType INVALID_SECURITY_CODE
public static final Prompt.ErrorType INTERNAL_ERROR
public static Prompt.ErrorType[] values()
for (Prompt.ErrorType c : Prompt.ErrorType.values()) System.out.println(c);
public static Prompt.ErrorType 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<Prompt.ErrorType>
Copyright © 2019 Twilio, Inc. All Rights Reserved.