Package com.vonage.client.sms
Enum Class MessageStatus
- All Implemented Interfaces:
Serializable,Comparable<MessageStatus>,java.lang.constant.Constable
Enum representing the error status of an SMS message. See
the documentation for more details.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis account is not provisioned for the SMS API.Deprecated.Deprecated.An error has occurred in the platform whilst processing this message.The callback URL supplied was either too long or contained illegal characters.Your API key and/or secret are incorrect, invalid or disabled.You are using a non-authorized sender ID in the from field.The platform was unable to process this message, for example, an un-recognized number prefix.Deprecated.The network code supplied was either not recognized, or does not match the country of the destination address.The value of one or more parameters is invalid.The signature supplied could not be verified.Deprecated.The message length exceeds the maximum allowed.Your request is missing one of the required parameters from, to, api_key, api_secret or text.Your Vonage account is still in demo mode.The number you are trying to send messages to is blacklisted and may not receive them.The number you are trying to send messages to is de-activated and may not receive them.Deprecated.A status of zero does not indicate that Vonage delivered your message.Your Vonage account has been suspended.You do not have sufficient credit to send the message.A signed request may not also present an api_secret.You are sending SMS faster than the account limit.The number of simultaneous connections to the platform exceeds your account allocation.Deprecated.Unknown status code. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageStatusfromInt(int messageStatus) Look up the MessageStatus based on the int value.intstatic MessageStatusReturns the enum constant of this class with the specified name.static MessageStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
A status of zero does not indicate that Vonage delivered your message. Instead, this status indicates the absence of an error - i.e. the REST call succeeded. -
THROTTLED
You are sending SMS faster than the account limit. -
MISSING_PARAMS
Your request is missing one of the required parameters from, to, api_key, api_secret or text. -
INVALID_PARAMS
The value of one or more parameters is invalid. -
INVALID_CREDENTIALS
Your API key and/or secret are incorrect, invalid or disabled. -
INTERNAL_ERROR
An error has occurred in the platform whilst processing this message. -
INVALID_MESSAGE
The platform was unable to process this message, for example, an un-recognized number prefix. -
NUMBER_BARRED
The number you are trying to send messages to is blacklisted and may not receive them. -
PARTNER_ACCOUNT_BARRED
Your Vonage account has been suspended. -
PARTNER_QUOTA_EXCEEDED
You do not have sufficient credit to send the message. -
TOO_MANY_BINDS
The number of simultaneous connections to the platform exceeds your account allocation. -
ACCOUNT_NOT_HTTP
This account is not provisioned for the SMS API. -
MESSAGE_TOO_LONG
The message length exceeds the maximum allowed. -
COMMS_FAILURE
Deprecated.No longer used. -
INVALID_SIGNATURE
The signature supplied could not be verified. -
INVALID_FROM_ADDRESS
You are using a non-authorized sender ID in the from field. -
INVALID_TTL
Deprecated.No longer used. -
NUMBER_UNREACHABLE
Deprecated.No longer used. -
TOO_MANY_DESTINATIONS
Deprecated.No longer used. -
FACILITY_NOT_ALLOWED
Deprecated.No longer used. -
INVALID_MESSAGE_CLASS
Deprecated.No longer used. -
INVALID_NETWORK_CODE
The network code supplied was either not recognized, or does not match the country of the destination address. -
INVALID_CALLBACK
The callback URL supplied was either too long or contained illegal characters. -
NON_WHITELISTED_DESTINATION
Your Vonage account is still in demo mode. While in demo mode you must add target numbers to your whitelisted destination list. -
SIGNATURE_API_SECRET_DISALLOWED
A signed request may not also present an api_secret. -
NUMBER_DEACTIVATED
The number you are trying to send messages to is de-activated and may not receive them. -
UNKNOWN
Unknown status code.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromInt
Look up the MessageStatus based on the int value.- Parameters:
messageStatus- the int value of the message status.- Returns:
- MessageStatus based on the int value given.
-
getMessageStatus
-