wimdeblauwe / error-handling-spring-boot-starter

Spring Boot starter for configurable REST API error handling
https://wimdeblauwe.github.io/error-handling-spring-boot-starter/
Apache License 2.0
430 stars 52 forks source link

Document exactly which exception types produce `fieldErrors` in the response #86

Closed donalmurtagh closed 6 months ago

donalmurtagh commented 7 months ago

The documentation says

For some exceptions like MethodArgumentNotValidException, ConstraintViolationException,…​ there is special handling and extra information is returned in the response.

But it would be helpful to know exactly which exception types produce this extra information, e.g. is it

wimdeblauwe commented 6 months ago

I believe that if you want to know it so exact, you should look at the source code. The documentation just gives some examples. It is not the intention to have an exhaustive list there.