Enum ErrorMessage

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ErrorMessage>

    public enum ErrorMessage
    extends java.lang.Enum<ErrorMessage>
    Error Message for Metadata
    • Enum Constant Detail

      • SELECT_UNITS_QUERY_NULL

        public static final ErrorMessage SELECT_UNITS_QUERY_NULL
        message when select units query is null
      • SELECT_UNITS_QUERY_BULK_NULL

        public static final ErrorMessage SELECT_UNITS_QUERY_BULK_NULL
        message when select units query bulk is null
      • SELECT_OBJECT_GROUP_QUERY_NULL

        public static final ErrorMessage SELECT_OBJECT_GROUP_QUERY_NULL
        message when select objectgroup query is null
      • UPDATE_UNITS_QUERY_NULL

        public static final ErrorMessage UPDATE_UNITS_QUERY_NULL
        message when update units query is null
      • UPDATE_UNITS_QUERY_BULK_NULL

        public static final ErrorMessage UPDATE_UNITS_QUERY_BULK_NULL
        message when insert units query bulk is null
      • UPDATE_OBJECT_GROUP_QUERY_NULL

        public static final ErrorMessage UPDATE_OBJECT_GROUP_QUERY_NULL
        message when update object group query is null
      • INSERT_UNITS_QUERY_NULL

        public static final ErrorMessage INSERT_UNITS_QUERY_NULL
        message when insert units query is null
      • BLANK_PARAM

        public static final ErrorMessage BLANK_PARAM
        message when unit id parameter is blank
      • INTERNAL_SERVER_ERROR

        public static final ErrorMessage INTERNAL_SERVER_ERROR
        message when internal server error occured
      • SIZE_TOO_LARGE

        public static final ErrorMessage SIZE_TOO_LARGE
        message when document size of unit is too large
      • INVALID_PARSE_OPERATION

        public static final ErrorMessage INVALID_PARSE_OPERATION
        message when parsing an invalid json
      • INVALID_METADATA_VALUE

        public static final ErrorMessage INVALID_METADATA_VALUE
        when invalid metadata values
      • MISSING_SELECT_QUERY

        public static final ErrorMessage MISSING_SELECT_QUERY
        when missing select query
      • DATA_ALREADY_EXISTS

        public static final ErrorMessage DATA_ALREADY_EXISTS
        message when data insert/update exists
      • NOT_FOUND

        public static final ErrorMessage NOT_FOUND
        message when querying data not found
    • Method Detail

      • values

        public static ErrorMessage[] 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 (ErrorMessage c : ErrorMessage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorMessage valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMessage

        public java.lang.String getMessage()
        Returns:
        the associated message