Enum Errors
- java.lang.Object
-
- java.lang.Enum<Errors>
-
- io.mosip.kernel.authcodeflowproxy.api.constants.Errors
-
- All Implemented Interfaces:
Serializable,Comparable<Errors>
public enum Errors extends Enum<Errors>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACESSTOKEN_EXCEPTIONCANNOT_CONNECT_TO_AUTH_SERVICECannot connect to auth serviceCOOKIE_NOTPRESENT_ERROREmpty Cookie errorINVALID_TOKENIO_EXCEPTIONIO ExceptionRESPONSE_PARSE_ERRORRESPONSE_PARSE_ERRORREST_EXCEPTIONSTATE_EXCEPTIONTOKEN_NOTPRESENT_ERROREmpty Cookie error
-
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
-
-
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
-
-