Package gdv.xport.srv.web
Class ErrorModel
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.springframework.ui.ModelMap
org.springframework.ui.ExtendedModelMap
gdv.xport.srv.web.ErrorModel
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,Object> org.springframework.ui.Model
public class ErrorModel
extends org.springframework.ui.ExtendedModelMap
Diese Klasse wandelt eine Exception in ein Model fuer die Ausgabe
auf der Web-UI um.
- Since:
- 6.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.springframework.ui.Model>
asModelList
(Exception ex) Hierueber laesst sich eineIOException
in eine "Violation"-Liste umwandeln, die fuer die Ausgabe der Validierung zum Einsatz kommt.static ErrorModel
Wandelt eine Exception in ein ErrorModel um.Methods inherited from class org.springframework.ui.ExtendedModelMap
addAllAttributes, addAllAttributes, addAttribute, addAttribute, asMap, mergeAttributes
Methods inherited from class org.springframework.ui.ModelMap
containsAttribute, getAttribute
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from interface org.springframework.ui.Model
containsAttribute, getAttribute
-
Constructor Details
-
ErrorModel
public ErrorModel()
-
-
Method Details
-
of
Wandelt eine Exception in ein ErrorModel um.- Parameters:
ex
- Exception- Returns:
- ErrorModel
-
asModelList
Hierueber laesst sich eineIOException
in eine "Violation"-Liste umwandeln, die fuer die Ausgabe der Validierung zum Einsatz kommt.- Parameters:
ex
- Exception- Returns:
- the list
-