| Modifier and Type | Method and Description |
|---|---|
long |
getErrorCode() |
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode INVALID_MESSAGE
public static final ErrorCode NETWORK_ERROR
public static final ErrorCode SPAM_DETECTED
public static final ErrorCode INVALID_SOURCE_NUMBER
public static final ErrorCode INVALID_DESTINATION_NUMBER
public static final ErrorCode LOOP_DETECTED
public static final ErrorCode DESTINATION_PERMANENTLY_UNAVAILABLE
public static final ErrorCode DESTINATION_TEMPORARILY_UNAVAILABLE
public static final ErrorCode NO_ROUTE_AVAILABLE
public static final ErrorCode PROHIBITED_BY_CARRIER
public static final ErrorCode MESSAGE_TOO_LONG
public static final ErrorCode BLOCKED_BY_STOP
public static final ErrorCode UNKNOWN_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic long getErrorCode()