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