-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Closed
Copy link
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
Pavel Orehov opened SPR-10047 and commented
Currently the @ExceptionHandler method can not contain HandlerMethod as method parameter as it is not passed by spring framework.
It could be very helpful for investigating throwing exception method, for example, for custom annotations.
The workaround that I found is to create mvc interceptor and pass the MethodHandler via ServletRequest.attributtes.
Affects: 3.2 RC2
Issue Links:
- Provide access to the target HandlerMethod from @ExceptionHandler methods [SPR-12605] #17206 Provide access to the target HandlerMethod from
@ExceptionHandlermethods ("duplicates")
1 votes, 3 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement