Closed
Description
According to RFC-7807 (see https://tools.ietf.org/html/rfc7807) it would be useful to provide an invalid-params
field in case of 400 Bad Request
errors. This field is supposed to contain ALL violated parameters, no matter which Exception
type is caught by the ExceptionHandler
annotated methods.
Since in case of multiple violations it is possible that Exceptions
of different types occur (e.g. ConstraintViolationException
and MethodArgumentTypeMismatchException
from one request), those Exception
objects must be available in the ExceptionHandler
.
A solution would be a resolver for a List
of Exceptions
.