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

Make ExceptionHandler invokable when matching deeply nested cause #26366

Closed
wants to merge 1 commit into from

Conversation

rod2j
Copy link

@rod2j rod2j commented Jan 11, 2021

Closes #26317

@@ -28,6 +28,8 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.exception.ExceptionUtils;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Production code should not have a dependency on Apache Commons Lang.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering about that and forgot to ask before submitting the PR.
Going to fix this that today.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment on the main issue: There seems to be a simpler approach that I intend to use instead. No need to update the PR if we go with that.

@sbrannen sbrannen added in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug labels Jan 11, 2021
@sbrannen sbrannen requested a review from rstoyanchev January 11, 2021 09:22
@jhoeller
Copy link
Contributor

As mentioned above, I went with a simpler approach of exposing all exception causes as provided handler method arguments.

Thanks for the PR, in any case! I've added your tests to my commit (with your author attribution).

@jhoeller jhoeller closed this Jan 11, 2021
@sbrannen sbrannen added status: superseded An issue that has been superseded by another and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 27, 2021
@sbrannen
Copy link
Member

Superseded by alternative solution to #26317.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: superseded An issue that has been superseded by another type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@ExceptionHandler methods not invokable if matched on exception's cause level > 1
4 participants