Package com.randomnoun.common
Class ErrorList.ErrorData
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
- Enclosing class:
ErrorList
ErrorInfo inner class - contains information related to
a single error
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()
Retrieves a comma-separated list of fields that caused this errorRetrieves the description for this errorRetrieves the description for this error, with newlines converted to <br/>s.int
Retrieves the severity of this errorRetrieves the type for this errortoString()
Retrieves a string representation of this errorMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Constructor Details
-
ErrorData
Creates a new ErrorInfo object.- Parameters:
shortText
- a short, descriptive string for this errorlongText
- a more lengthy description of this errorerrorField
- comma-separated list of field names that caused this errorseverity
- the severity of this error
-
-
Method Details
-
getShortText
Retrieves the type for this error- Returns:
- the type for this error
-
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
Retrieves a comma-separated list of fields that caused this error- Returns:
- a comma-separated list of fields that caused this error
-
getSeverity
Retrieves the severity of this error- Returns:
- the severity of this error
-
toString
Retrieves a string representation of this error- Overrides:
toString
in classAbstractMap<String,
Object> - Returns:
- a string representation of this error
-