Error Handling
A controller advice can be used to take care of exception handling:
The @ExceptionHandler defines the exception to capture, and @ResponseStatus the status for the response.
Default Implementation
There is an abstract class to ease creating exception handlers:
Last updated
Was this helpful?