public enum OTPErrorCode extends Enum<OTPErrorCode>
| Enum Constant and Description |
|---|
EMAILNOTCONFIGURED
EMAIL not configured
|
EMAILNOTREGISTERED
Email not registered
|
EMAILPHONENOTREGISTERED
Email and Phone not registered
|
EMAILSMSNOTCONFIGURED
EMAIL and SMS not configured
|
LANGUAGENOTCONFIGURED
User blocked
|
PHONENOTREGISTERED
Phone Number not registered
|
SMSNOTCONFIGURED
SMS not configured
|
UNABLETOSENDNOTIFICATION
EMAIL and SMS not configured
|
USERBLOCKED
User blocked
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Function to get error code
|
String |
getErrorMessage()
Function to get the error message
|
static OTPErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OTPErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OTPErrorCode PHONENOTREGISTERED
public static final OTPErrorCode EMAILNOTREGISTERED
public static final OTPErrorCode EMAILPHONENOTREGISTERED
public static final OTPErrorCode SMSNOTCONFIGURED
public static final OTPErrorCode EMAILNOTCONFIGURED
public static final OTPErrorCode EMAILSMSNOTCONFIGURED
public static final OTPErrorCode UNABLETOSENDNOTIFICATION
public static final OTPErrorCode USERBLOCKED
public static final OTPErrorCode LANGUAGENOTCONFIGURED
public static OTPErrorCode[] values()
for (OTPErrorCode c : OTPErrorCode.values()) System.out.println(c);
public static OTPErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getErrorMessage()
errorMessagerCopyright © 2020. All rights reserved.