If I have a Spring Controller with two SEPARATE methods, one annotated by:
@ExceptionHandler(Exception.class)
and another annotated by:
@ExceptionHandler(SubException.class)
And my controller throws SubException.class, does it get handled by both methods, or just @ExceptionHandler(SubException.class)?
One handler will be invoked on a best fit basis.
The exact implementation is in
AnnotationMethodHandlerExceptionResolver.findBestExceptionHandlerMethod(Object,Exception)