Skip to content

@ExceptionHandler cannot handler java.lang.Error despite the annotation accept ? extends Throwable [SPR-11106] #15732

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

2 votes, 4 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions