Class ResponseObject.ErrorObject<DataType>

    • Field Detail

      • PROPERTY_NAME_CODE

        public static final String PROPERTY_NAME_CODE
        The property name for $.error.code of response objects. The value is "code".
        See Also:
        Constant Field Values
      • PROPERTY_NAME_MESSAGE

        public static final String PROPERTY_NAME_MESSAGE
        The property name for $.error.message of response objects. The value is "message".
        See Also:
        Constant Field Values
      • PROPERTY_NAME_DATA

        public static final String PROPERTY_NAME_DATA
        The property name for $.error.data of response objects. The value is "data".
        See Also:
        Constant Field Values
      • MIN_CODE_PREDEFINED_ERROR

        public static final int MIN_CODE_PREDEFINED_ERROR
        The minimum value for codes reserved for pre-defined errors. The value is -32768.
        See Also:
        Constant Field Values
      • MAX_CODE_PREDEFINED_ERROR

        public static final int MAX_CODE_PREDEFINED_ERROR
        The maximum value for codes reserved for pre-defined errors. The value is -32000.
        See Also:
        Constant Field Values
      • CODE_PARSE_ERROR

        public static final int CODE_PARSE_ERROR
        The code value for parse error meaning an invalid json received by the server or an error occurred on the server while parsing the JSON text. The value is -32700.
        See Also:
        Constant Field Values
      • CODE_INVALID_REQUEST

        public static final int CODE_INVALID_REQUEST
        The code value for invalid request meaning the JSON sent is not a valid request object. The value is -32600.
        See Also:
        Constant Field Values
      • CODE_METHOD_NOT_FOUND

        public static final int CODE_METHOD_NOT_FOUND
        The code value for method not found meaning the method does not exist nor available. The value is -32601.
        See Also:
        Constant Field Values
      • CODE_INVALID_PARAMS

        public static final int CODE_INVALID_PARAMS
        The code value for invalid params meaning invalid parameter(s). The value is -32602.
        See Also:
        Constant Field Values
      • CODE_INTERNAL_ERROR

        public static final int CODE_INTERNAL_ERROR
        The code value for internal error meaning an internal JSON-RPC error. The value is -32603.
        See Also:
        Constant Field Values
      • MIN_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR

        public static final int MIN_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR
        The minimum value for codes reserved for implementation-defined server errors. The value is -32099.
        See Also:
        Constant Field Values
      • MAX_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR

        public static final int MAX_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR
        The maximum value for codes reserved for implementation-defined server errors. The value is -32000.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ErrorObject

        public ErrorObject()
        Creates a new instance.
    • Method Detail

      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        obj - the reference object with which to compare
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for this object.
      • getCode

        public Integer getCode()
        Returns the current value of "code" property. Note that the value of the "code" property must be NotNull in a Bean-Validation context.
        Returns:
        the current value of "code" property.
      • setCode

        public void setCode​(Integer code)
        Replaces the current value of "code" property with specified value.
        Parameters:
        code - new value for "code" property.
      • getMessage

        public String getMessage()
        Returns the current value of "message" property.
        Returns:
        the current value of "message" property.
      • setMessage

        public void setMessage​(String message)
        Replaces the current value of "message" property with specified value.
        Parameters:
        message - new value for "message" property.
      • getData

        public DataType getData()
        Returns the current value of "data" property.
        Returns:
        the current value of "data" property.
      • setData

        public void setData​(DataType data)
        Replaces the current value of "data" property with specified value.
        Parameters:
        data - new value for "data" property.