Closed
Description
Jiri Mikulasek opened SPR-11106 and commented
according to http://docs.spring.io/spring/docs/3.0.x/api/org/springframework/web/bind/annotation/ExceptionHandler.html
@Exceptionhandler
should allow to handle also Errors, however it can't, cause DispatcherServlet doesn't catch and deliver that to ExceptionHandler
Affects: 3.2.4, 4.2.5
Reference URL: http://stackoverflow.com/questions/8184593/why-error-is-not-getting-caught-even-when-explicitly-thrown/8212177#8212177
Issue Links:
- After-completion callback not triggered for custom Throwable subclass [SPR-14329] #18901 After-completion callback not triggered for custom Throwable subclass
- AbstractMethodMessageHandler does not rethrow Errors [SPR-16912] #21451 AbstractMethodMessageHandler does not rethrow Errors
- @ExceptionHandler should match cause as well (e.g. for exception thrown from argument formatter) [SPR-14291] #18863
@ExceptionHandler
should match cause as well (e.g. for exception thrown from argument formatter)
2 votes, 4 watchers