-
Notifications
You must be signed in to change notification settings - Fork 91
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
Expose rootCause util #542
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this method to some separate object? If it’s intended to be consumed externally then I’d prefer to have it be public (not package private) and on an object so that it’s clearly a stateless method (doesn’t need to live inside a class).
I’d also prefer to keep all the cases of the old implementation. I recall hitting on InvocationTargetException in a lot of cases but it might not have a test case to reproduce it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, I missed that it’s a static method. I’d prefer to move the method to a new object named “Exceptions” or something like that. MUnitRunner will no longer be needed for JUnit 5 if that upgrade ever happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving just to unblock merge in case I miss notifications
@armanbilge would you mind taking another peak at this now that cross-compatibility is back in? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the diff is quite small anyway :)
Resolves #541 by making
rootCause
publicly available withExceptions.rootCause
but keeps things cross-platform.cc. @armanbilge