public enum OtpErrorConstants extends Enum<OtpErrorConstants>
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode() |
String |
getErrorMessage() |
static OtpErrorConstants |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OtpErrorConstants[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OtpErrorConstants OTP_GEN_ILLEGAL_KEY_INPUT
public static final OtpErrorConstants OTP_VAL_INVALID_KEY_INPUT
public static final OtpErrorConstants OTP_VAL_ILLEGAL_KEY_INPUT
public static final OtpErrorConstants OTP_VAL_INVALID_OTP_INPUT
public static final OtpErrorConstants OTP_VAL_ILLEGAL_OTP_INPUT
public static final OtpErrorConstants OTP_VAL_KEY_NOT_FOUND
public static final OtpErrorConstants INTERNAL_SERVER_ERROR
public static final OtpErrorConstants HTTP_MESSAGE_NOT_READABLE
public static final OtpErrorConstants OTP_GEN_CRYPTO_FAILURE
public static final OtpErrorConstants OTP_GEN_ALGO_FAILURE
public static final OtpErrorConstants OTP_GEN_IO_FAILURE
public static OtpErrorConstants[] values()
for (OtpErrorConstants c : OtpErrorConstants.values()) System.out.println(c);
public static OtpErrorConstants 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 getErrorCode()
public String getErrorMessage()
Copyright © 2020. All rights reserved.