Enum JsonUtilConstants
- java.lang.Object
-
- java.lang.Enum<JsonUtilConstants>
-
- io.mosip.kernel.core.util.constant.JsonUtilConstants
-
- All Implemented Interfaces:
Serializable,Comparable<JsonUtilConstants>
public enum JsonUtilConstants extends Enum<JsonUtilConstants>
This enum contains all the error codes and messages of Jsonutil class- Author:
- Sidhant Agarwal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOSIP_IO_EXCEPTION_ERROR_CODEMOSIP_JSON_GENERATION_ERROR_CODEMOSIP_JSON_MAPPING_ERROR_CODEMOSIP_JSON_PARSE_ERROR_CODEMOSIP_JSON_PROCESSING_EXCEPTION
-
Field Summary
Fields Modifier and Type Field Description StringerrorCodeStringerrorMessage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static JsonUtilConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static JsonUtilConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOSIP_IO_EXCEPTION_ERROR_CODE
public static final JsonUtilConstants MOSIP_IO_EXCEPTION_ERROR_CODE
-
MOSIP_JSON_GENERATION_ERROR_CODE
public static final JsonUtilConstants MOSIP_JSON_GENERATION_ERROR_CODE
-
MOSIP_JSON_MAPPING_ERROR_CODE
public static final JsonUtilConstants MOSIP_JSON_MAPPING_ERROR_CODE
-
MOSIP_JSON_PARSE_ERROR_CODE
public static final JsonUtilConstants MOSIP_JSON_PARSE_ERROR_CODE
-
MOSIP_JSON_PROCESSING_EXCEPTION
public static final JsonUtilConstants MOSIP_JSON_PROCESSING_EXCEPTION
-
-
Method Detail
-
values
public static JsonUtilConstants[] 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 (JsonUtilConstants c : JsonUtilConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonUtilConstants 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
-
getErrorCode
public String getErrorCode()
-
getErrorMessage
public String getErrorMessage()
-
-