Enum VIDGeneratorErrorCode
- java.lang.Object
-
- java.lang.Enum<VIDGeneratorErrorCode>
-
- io.mosip.kernel.vidgenerator.constant.VIDGeneratorErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<VIDGeneratorErrorCode>
public enum VIDGeneratorErrorCode extends Enum<VIDGeneratorErrorCode>
Error Code for VID generator- Since:
- 1.0.0
- Author:
- Dharmesh Khandelwal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIG_SERVER_FETCH_FAILEDINTERNAL_SERVER_ERRORINTERNAL_SERVER_ERRORVID_EXPIRY_DATE_EMPTYVID_NOT_ISSUEDVID_EXPIRY_DATE_INVALIDVID_NOT_ISSUEDVID_EXPIRY_DATE_PATTERN_INVALIDVID_NOT_ISSUEDVID_NOT_AVAILABLEVID_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 VIDGeneratorErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static VIDGeneratorErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VID_NOT_AVAILABLE
public static final VIDGeneratorErrorCode VID_NOT_AVAILABLE
VID_NOT_FOUND
-
VID_EXPIRY_DATE_EMPTY
public static final VIDGeneratorErrorCode VID_EXPIRY_DATE_EMPTY
VID_NOT_ISSUED
-
VID_EXPIRY_DATE_INVALID
public static final VIDGeneratorErrorCode VID_EXPIRY_DATE_INVALID
VID_NOT_ISSUED
-
VID_EXPIRY_DATE_PATTERN_INVALID
public static final VIDGeneratorErrorCode VID_EXPIRY_DATE_PATTERN_INVALID
VID_NOT_ISSUED
-
INTERNAL_SERVER_ERROR
public static final VIDGeneratorErrorCode INTERNAL_SERVER_ERROR
INTERNAL_SERVER_ERROR
-
CONFIG_SERVER_FETCH_FAILED
public static final VIDGeneratorErrorCode CONFIG_SERVER_FETCH_FAILED
-
-
Method Detail
-
values
public static VIDGeneratorErrorCode[] 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 (VIDGeneratorErrorCode c : VIDGeneratorErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VIDGeneratorErrorCode 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
-
-