Enum SMSDeliveryStatus
- All Implemented Interfaces:
Serializable,Comparable<SMSDeliveryStatus>,java.lang.constant.Constable
- Author:
- jgomer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe message was not delivered due to a misconfiguration in the connection with the underlying Twilio serviceThe underlying Twilio API call returned a status of "failed".The API call received no phone number to send the message toThe underlying Twilio API call threw an exception.The underlying Twilio API call returned a status other thanUNDELIVEREDorDELIVERY_FAILED.The underlying Twilio API call returned a status of "undelivered". -
Method Summary
Modifier and TypeMethodDescriptionstatic SMSDeliveryStatusReturns the enum constant of this type with the specified name.static SMSDeliveryStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The underlying Twilio API call returned a status other thanUNDELIVEREDorDELIVERY_FAILED. See Twilio status values.Recall that a success status does not guarantee the recipient actually receiving a message.
-
NO_NUMBER
The API call received no phone number to send the message to -
UNDELIVERED
The underlying Twilio API call returned a status of "undelivered". See Twilio status values. -
DELIVERY_FAILED
The underlying Twilio API call returned a status of "failed". See Twilio status values. -
APP_SETUP_ERROR
The message was not delivered due to a misconfiguration in the connection with the underlying Twilio service -
PROVIDER_ERROR
The underlying Twilio API call threw an exception. This may happen in a variety of situations, for instance, providing a non-valid phone number (e.g 555-1234-AB)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-