Package com.twilio.twiml.voice
Enum Prompt.ErrorType
- java.lang.Object
-
- java.lang.Enum<Prompt.ErrorType>
-
- com.twilio.twiml.voice.Prompt.ErrorType
-
- All Implemented Interfaces:
Serializable,Comparable<Prompt.ErrorType>
- Enclosing class:
- Prompt
public static enum Prompt.ErrorType extends Enum<Prompt.ErrorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INPUT_MATCHING_FAILEDINTERNAL_ERRORINVALID_CARD_NUMBERINVALID_CARD_TYPEINVALID_DATEINVALID_SECURITY_CODETIMEOUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static Prompt.ErrorTypevalueOf(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.
-
-
-
Enum Constant Detail
-
TIMEOUT
public static final Prompt.ErrorType TIMEOUT
-
INVALID_CARD_NUMBER
public static final Prompt.ErrorType INVALID_CARD_NUMBER
-
INVALID_CARD_TYPE
public static final Prompt.ErrorType INVALID_CARD_TYPE
-
INVALID_DATE
public static final Prompt.ErrorType INVALID_DATE
-
INVALID_SECURITY_CODE
public static final Prompt.ErrorType INVALID_SECURITY_CODE
-
INTERNAL_ERROR
public static final Prompt.ErrorType INTERNAL_ERROR
-
INPUT_MATCHING_FAILED
public static final Prompt.ErrorType INPUT_MATCHING_FAILED
-
-
Method Detail
-
values
public static Prompt.ErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Prompt.ErrorType c : Prompt.ErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Prompt.ErrorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<Prompt.ErrorType>
-
-