Enum Errors
- java.lang.Object
-
- java.lang.Enum<Errors>
-
- io.mosip.kernel.openid.bridge.api.constants.Errors
-
- All Implemented Interfaces:
Serializable,Comparable<Errors>
public enum Errors extends Enum<Errors>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACESSTOKEN_EXCEPTIONALLOWED_URL_EXCEPTIONCANNOT_CONNECT_TO_AUTH_SERVICECannot connect to auth serviceCOOKIE_NOTPRESENT_ERROREmpty Cookie errorEXCEPTIONINVALID_TOKENIO_EXCEPTIONIO ExceptionJSON_PROCESSING_EXCEPTIONJWT_SIGN_EXCEPTIONRESPONSE_PARSE_ERRORRESPONSE_PARSE_ERRORREST_EXCEPTIONSTATE_EXCEPTIONSTATE_NOT_UUID_EXCEPTIONSTATE_NULL_EXCEPTIONTOKEN_NOTPRESENT_ERROREmpty Cookie errorUNSUPPORTED_ENCODING_EXCEPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Function to get error codeStringgetErrorMessage()Function to get the error messagestatic ErrorsvalueOf(String name)Returns the enum constant of this type with the specified name.static Errors[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COOKIE_NOTPRESENT_ERROR
public static final Errors COOKIE_NOTPRESENT_ERROR
Empty Cookie error
-
TOKEN_NOTPRESENT_ERROR
public static final Errors TOKEN_NOTPRESENT_ERROR
Empty Cookie error
-
IO_EXCEPTION
public static final Errors IO_EXCEPTION
IO Exception
-
CANNOT_CONNECT_TO_AUTH_SERVICE
public static final Errors CANNOT_CONNECT_TO_AUTH_SERVICE
Cannot connect to auth service
-
RESPONSE_PARSE_ERROR
public static final Errors RESPONSE_PARSE_ERROR
RESPONSE_PARSE_ERROR
-
ACESSTOKEN_EXCEPTION
public static final Errors ACESSTOKEN_EXCEPTION
-
STATE_EXCEPTION
public static final Errors STATE_EXCEPTION
-
REST_EXCEPTION
public static final Errors REST_EXCEPTION
-
INVALID_TOKEN
public static final Errors INVALID_TOKEN
-
EXCEPTION
public static final Errors EXCEPTION
-
ALLOWED_URL_EXCEPTION
public static final Errors ALLOWED_URL_EXCEPTION
-
STATE_NULL_EXCEPTION
public static final Errors STATE_NULL_EXCEPTION
-
STATE_NOT_UUID_EXCEPTION
public static final Errors STATE_NOT_UUID_EXCEPTION
-
UNSUPPORTED_ENCODING_EXCEPTION
public static final Errors UNSUPPORTED_ENCODING_EXCEPTION
-
JWT_SIGN_EXCEPTION
public static final Errors JWT_SIGN_EXCEPTION
-
JSON_PROCESSING_EXCEPTION
public static final Errors JSON_PROCESSING_EXCEPTION
-
-
Method Detail
-
values
public static Errors[] 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 (Errors c : Errors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Errors 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
-
getErrorMessage
public String getErrorMessage()
Function to get the error message- Returns:
errorMessager
-
-