Class Error

    • Method Detail

      • code

        public long code()
        Getter for error code field.
        Returns:
        The error code
      • message

        public String message()
        Getter for error message field.
        Returns:
        The message
      • data

        public Optional<com.google.gson.JsonElement> data()
        Getter for error data field.
        Returns:
        The additional data
      • hashCode

        public int hashCode()
        This method is implemented using Objects.hash().

        Overrides:
        hashCode in class Object
        Returns:
        The hash code for this Error
      • equals

        public boolean equals​(Object obj)
        This method returns true if the argument is a Error and all properties are equal, otherwise returns false.

        Overrides:
        equals in class Object
        Parameters:
        obj - The object to be checked
        Returns:
        Whether this is the same as the Object argument
      • toString

        public String toString()
        The returned String is equal to the value of: "Error@" + Integer.toHexString(hashCode()) + " " + contentAsJsonString() where contentAsJsonString() returns a JSON-like String of this Error.
        Overrides:
        toString in class Object
        Returns:
        A String representation of this Error
      • contentAsJsonString

        protected String contentAsJsonString()
        The returned String represents the contents of this Error.
        Returns:
        A JSON-like String of this Error