SMSLib 3.5.3

org.smslib
Enum OutboundMessage.FailureCauses

java.lang.Object
  extended by java.lang.Enum<OutboundMessage.FailureCauses>
      extended by org.smslib.OutboundMessage.FailureCauses
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OutboundMessage.FailureCauses>
Enclosing class:
OutboundMessage

public static enum OutboundMessage.FailureCauses
extends java.lang.Enum<OutboundMessage.FailureCauses>

Enumeration representing the failure reasons of a failed outbound message.


Enum Constant Summary
BAD_FORMAT
          Bad message format - fatal error.
BAD_NUMBER
          Bad destination number - fatal error.
GATEWAY_AUTH
          Authentication problem (pin, passwords, etc) - fatal error.
GATEWAY_FAILURE
          Generic gateway failure - transient error, retry later.
GLOBAL_OPTOUT
          EzTexting specific: Globally opted out phone number (the phone number has been opted out from all messages sent from our short code)
LOCAL_OPTOUT
          EzTexting specific: Local opt out (the recipient/number is on your opt-out list.)
NO_CREDIT
          No credit left - fatal error.
NO_ERROR
          No error, everything OK.
NO_ROUTE
          Unable to route message - transient error.
UNKNOWN
          Unknown generic problems encountered.
 
Method Summary
static OutboundMessage.FailureCauses valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OutboundMessage.FailureCauses[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_ERROR

public static final OutboundMessage.FailureCauses NO_ERROR
No error, everything OK.


BAD_NUMBER

public static final OutboundMessage.FailureCauses BAD_NUMBER
Bad destination number - fatal error.


BAD_FORMAT

public static final OutboundMessage.FailureCauses BAD_FORMAT
Bad message format - fatal error.


GATEWAY_FAILURE

public static final OutboundMessage.FailureCauses GATEWAY_FAILURE
Generic gateway failure - transient error, retry later.


NO_CREDIT

public static final OutboundMessage.FailureCauses NO_CREDIT
No credit left - fatal error.


GATEWAY_AUTH

public static final OutboundMessage.FailureCauses GATEWAY_AUTH
Authentication problem (pin, passwords, etc) - fatal error.


NO_ROUTE

public static final OutboundMessage.FailureCauses NO_ROUTE
Unable to route message - transient error.


LOCAL_OPTOUT

public static final OutboundMessage.FailureCauses LOCAL_OPTOUT
EzTexting specific: Local opt out (the recipient/number is on your opt-out list.)


GLOBAL_OPTOUT

public static final OutboundMessage.FailureCauses GLOBAL_OPTOUT
EzTexting specific: Globally opted out phone number (the phone number has been opted out from all messages sent from our short code)


UNKNOWN

public static final OutboundMessage.FailureCauses UNKNOWN
Unknown generic problems encountered.

Method Detail

values

public static OutboundMessage.FailureCauses[] 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 (OutboundMessage.FailureCauses c : OutboundMessage.FailureCauses.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OutboundMessage.FailureCauses valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org