Class ErrorList.ErrorData

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>
Enclosing class:
ErrorList

public static class ErrorList.ErrorData extends HashMap<String,Object>
ErrorInfo inner class - contains information related to a single error
See Also:
  • Constructor Details

    • ErrorData

      public ErrorData(String shortText, String longText, String errorField, int severity)
      Creates a new ErrorInfo object.
      Parameters:
      shortText - a short, descriptive string for this error
      longText - a more lengthy description of this error
      errorField - comma-separated list of field names that caused this error
      severity - the severity of this error
  • Method Details

    • getShortText

      public String getShortText()
      Retrieves the type for this error
      Returns:
      the type for this error
    • getLongText

      public String getLongText()
      Retrieves the description for this error
      Returns:
      the description for this error
    • getLongTextWithNewlines

      Retrieves the description for this error, with newlines converted to <br/>s. When displaying with <c:out>, set the escapeXml attribute to false
      Returns:
      the description for this error
    • getField

      public String getField()
      Retrieves a comma-separated list of fields that caused this error
      Returns:
      a comma-separated list of fields that caused this error
    • getSeverity

      public int getSeverity()
      Retrieves the severity of this error
      Returns:
      the severity of this error
    • toString

      public String toString()
      Retrieves a string representation of this error
      Overrides:
      toString in class AbstractMap<String,Object>
      Returns:
      a string representation of this error