Package de.odrotbohm.spring.web.model
Class ErrorsWithDetails
java.lang.Object
de.odrotbohm.spring.web.model.ErrorsWithDetails
A model object to allow replacing the error messages rendered for field errors with custom details.
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDetails(String key, Object details) Registers the given details object to be used for the given key, i.e.toMap()
-
Constructor Details
-
ErrorsWithDetails
public ErrorsWithDetails()
-
-
Method Details
-
addDetails
Registers the given details object to be used for the given key, i.e. field name.- Parameters:
key- must not be null or empty.details- can be null.- Returns:
- will never be null.
-
toMap
-