Enum JsonUtilConstants

    • 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
    • Field Detail

      • errorCode

        public final String errorCode
      • errorMessage

        public final String errorMessage
    • 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 name
        NullPointerException - if the argument is null
      • getErrorCode

        public String getErrorCode()
      • getErrorMessage

        public String getErrorMessage()