Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide access to the target HandlerMethod from @ExceptionHandler methods [SPR-12605] #17206

Closed
spring-issuemaster opened this issue Jan 8, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Jan 8, 2015

Ayushya Devmurari opened SPR-12605 and commented

Hi,

Please refer the url provided and feel free to contact me.

Thanks and regards,

Ayushya


Affects: 3.2.3

Reference URL: http://stackoverflow.com/questions/27817544/find-the-class-from-where-the-exception-has-generated-without-using-stacktrace/27834873?noredirect=1#comment44112807_27834873

Issue Links:

  • #14681 Add HandlerMethod as possible parameter to @ExceptionHandler method ("is duplicated by")
  • #17788 Support HandlerMethod parameter in @MessageExceptionHandler

Referenced from: commits d68fde5

1 votes, 3 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 9, 2015

Rossen Stoyanchev commented

It should be trivial to support injecting the target "handler" for the request (in the case of annotated controllers that would be an instance of HandlerMethod) into an @ExceptionHandler method.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 21, 2015

Rossen Stoyanchev commented

Modified title (was: "Providing information that we can get when we use AOP JoinPoint when we use @ControllerAdvice").

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 21, 2015

Rossen Stoyanchev commented

This should be resolved now with commit d68fde.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.