In some situations, there is a need for specific exception handling in a Controller. This situation can easily be handled by implementing a method annotated with @ExceptionHandler(value = Exception.class).
In case specific exception handling is required only for a specific exception, the specific Exception class can be provided as the value for the value attribute of the annotation.