Looking for Advanced Java with Spring test answers and solutions? Browse our comprehensive collection of verified answers for Advanced Java with Spring at softserve.academy.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
DefaultHandlerExceptionResolver is used to resolve standard Spring exceptions to their corresponding HTTP Status Codes, namely Client error – 4xx and Server error – 5xx status codes.
What exception(s) is/are mapped by default to HTTP Status Code 400?
Where is @ExceptionHandler annotated method active?
What mechanisms allow setting a custom "response body" when handling an exception?
What is the base class for DefaultHandlerExceptionResolver and ResponseStatusExceptionResolver
Which annotation is available on custom exceptions to map these exceptions to HTTP status codes.
In a custom exception resolver we have no access to the request.
Match Exception and HTTP Status Code
The @ControllerAdvice annotation allows us to ...
What do we need to implement a custom exception resolver ?