Class DefaultErrorItem

    • Method Detail

      • getCode

        public String getCode()
        Description copied from interface: ErrorItem
        Return the error code.

        Application may use this error code as same as a resource bundle key for simplicity.

        Specified by:
        getCode in interface ErrorItem
        Returns:
        the error code
      • getMessage

        public String getMessage()
        Description copied from interface: ErrorItem
        Return the (human readable) error message.
        Specified by:
        getMessage in interface ErrorItem
        Returns:
        the (human readable) error message
      • equals

        public boolean equals​(Object o)
        Description copied from interface: ErrorItem
        Compares the specified object with this ErrorItem for equality.
        Specified by:
        equals in interface ErrorItem
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared for equality with this ErrorItem
        Returns:
        true if the specified object is equal to this ErrorItem
      • hashCode

        public int hashCode()
        Description copied from interface: ErrorItem
        Returns the hash code value for this ErrorItem.
        Specified by:
        hashCode in interface ErrorItem
        Overrides:
        hashCode in class Object
        Returns:
        the hash code value for this ErrorItem