Enum SmsExceptionConstant
- java.lang.Object
-
- java.lang.Enum<SmsExceptionConstant>
-
- io.mosip.kernel.smsserviceprovider.msg91.constant.SmsExceptionConstant
-
- All Implemented Interfaces:
Serializable,Comparable<SmsExceptionConstant>
public enum SmsExceptionConstant extends Enum<SmsExceptionConstant>
This enum provides all the exception constants for sms notification.- Since:
- 1.0.0
- Author:
- Ritesh sinha
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_SERVER_ERRORSMS_ILLEGAL_INPUTSMS_INVALID_CONTACT_NUMBERSMS_INVALID_CREDENTIAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static SmsExceptionConstantvalueOf(String name)Returns the enum constant of this type with the specified name.static SmsExceptionConstant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMS_ILLEGAL_INPUT
public static final SmsExceptionConstant SMS_ILLEGAL_INPUT
-
SMS_INVALID_CONTACT_NUMBER
public static final SmsExceptionConstant SMS_INVALID_CONTACT_NUMBER
-
SMS_INVALID_CREDENTIAL
public static final SmsExceptionConstant SMS_INVALID_CREDENTIAL
-
INTERNAL_SERVER_ERROR
public static final SmsExceptionConstant INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static SmsExceptionConstant[] 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 (SmsExceptionConstant c : SmsExceptionConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SmsExceptionConstant 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
-
getErrorCode
public String getErrorCode()
- Returns:
- the error code.
-
getErrorMessage
public String getErrorMessage()
- Returns:
- the error message.
-
-