Interface ErrorItem

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultErrorItem

public interface ErrorItem extends Serializable
Error Item abstraction which is part of Errors.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares the specified object with this ErrorItem for equality.
    Return the error code.
    Return the (human readable) error message.
    int
    Returns the hash code value for this ErrorItem.
  • Method Details

    • getCode

      String getCode()
      Return the error code.

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

      Returns:
      the error code
    • getMessage

      String getMessage()
      Return the (human readable) error message.
      Returns:
      the (human readable) error message
    • equals

      boolean equals(Object o)
      Compares the specified object with this ErrorItem for equality.
      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

      int hashCode()
      Returns the hash code value for this ErrorItem.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code value for this ErrorItem