Enum UinGeneratorErrorCode
- java.lang.Object
-
- java.lang.Enum<UinGeneratorErrorCode>
-
- io.mosip.kernel.uingenerator.constant.UinGeneratorErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<UinGeneratorErrorCode>
public enum UinGeneratorErrorCode extends Enum<UinGeneratorErrorCode>
Error Code for Uin generator- Since:
- 1.0.0
- Author:
- Dharmesh Khandelwal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIG_SERVER_FETCH_FAILEDINTERNAL_SERVER_ERRORINTERNAL_SERVER_ERRORUIN_NOT_FOUNDUIN_NOT_FOUNDUIN_NOT_ISSUEDUIN_NOT_ISSUEDUIN_STATUS_NOT_FOUNDUIN_STATUS_NOT_FOUND
-
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 UinGeneratorErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static UinGeneratorErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UIN_NOT_FOUND
public static final UinGeneratorErrorCode UIN_NOT_FOUND
UIN_NOT_FOUND
-
UIN_STATUS_NOT_FOUND
public static final UinGeneratorErrorCode UIN_STATUS_NOT_FOUND
UIN_STATUS_NOT_FOUND
-
UIN_NOT_ISSUED
public static final UinGeneratorErrorCode UIN_NOT_ISSUED
UIN_NOT_ISSUED
-
INTERNAL_SERVER_ERROR
public static final UinGeneratorErrorCode INTERNAL_SERVER_ERROR
INTERNAL_SERVER_ERROR
-
CONFIG_SERVER_FETCH_FAILED
public static final UinGeneratorErrorCode CONFIG_SERVER_FETCH_FAILED
-
-
Method Detail
-
values
public static UinGeneratorErrorCode[] 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 (UinGeneratorErrorCode c : UinGeneratorErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UinGeneratorErrorCode 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
-
-