Enum Class OtpErrorConstants
- All Implemented Interfaces:
Serializable,Comparable<OtpErrorConstants>,Constable
Error constants for OTP
- Author:
- Dinesh Karuppiah.T
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEMAIL not configuredEmail not registeredEmail and Phone not registeredEMAIL and SMS not configuredUser blockedPhone Number not registeredSMS not configuredEMAIL and SMS not configuredUser blocked -
Method Summary
Modifier and TypeMethodDescriptionFunction to get error codeFunction to get the error messagestatic OtpErrorConstantsReturns the enum constant of this class with the specified name.static OtpErrorConstants[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PHONENOTREGISTERED
Phone Number not registered -
EMAILNOTREGISTERED
Email not registered -
EMAILPHONENOTREGISTERED
Email and Phone not registered -
SMSNOTCONFIGURED
SMS not configured -
EMAILNOTCONFIGURED
EMAIL not configured -
EMAILSMSNOTCONFIGURED
EMAIL and SMS not configured -
UNABLETOSENDNOTIFICATION
EMAIL and SMS not configured -
USERBLOCKED
User blocked -
LANGUAGENOTCONFIGURED
User blocked
-
-
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
-
getErrorCode
Function to get error code- Returns:
errorCode
-
getErrorMessage
Function to get the error message- Returns:
errorMessager
-