Package org.cyclos.impl.utils.sms
Enum BaseSmsOperation.BaseError
- java.lang.Object
-
- java.lang.Enum<BaseSmsOperation.BaseError>
-
- org.cyclos.impl.utils.sms.BaseSmsOperation.BaseError
-
- All Implemented Interfaces:
Serializable,Comparable<BaseSmsOperation.BaseError>,HasMessageKey
- Enclosing class:
- BaseSmsOperation
protected static enum BaseSmsOperation.BaseError extends Enum<BaseSmsOperation.BaseError> implements HasMessageKey
Commons built-in sms operation errors. They could be used by any built-in operation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPIRED_PASSWORD_ERRORGENERAL_VALIDATION_ERRORINVALID_PARAMETERINVALID_PARAMETERS_COUNTPENDING_AGREEMENT_ERRORVALIDATION_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static BaseSmsOperation.BaseErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static BaseSmsOperation.BaseError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_PARAMETER
public static final BaseSmsOperation.BaseError INVALID_PARAMETER
-
INVALID_PARAMETERS_COUNT
public static final BaseSmsOperation.BaseError INVALID_PARAMETERS_COUNT
-
EXPIRED_PASSWORD_ERROR
public static final BaseSmsOperation.BaseError EXPIRED_PASSWORD_ERROR
-
PENDING_AGREEMENT_ERROR
public static final BaseSmsOperation.BaseError PENDING_AGREEMENT_ERROR
-
GENERAL_VALIDATION_ERROR
public static final BaseSmsOperation.BaseError GENERAL_VALIDATION_ERROR
-
VALIDATION_ERROR
public static final BaseSmsOperation.BaseError VALIDATION_ERROR
-
-
Method Detail
-
values
public static BaseSmsOperation.BaseError[] 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 (BaseSmsOperation.BaseError c : BaseSmsOperation.BaseError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseSmsOperation.BaseError 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-