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

we have to call twice getCause , In IPublicationErrorHandler.handleError(PublicationError ) #146

Open
yuhaqiang123 opened this issue May 13, 2017 · 0 comments

Comments

@yuhaqiang123
Copy link

PublicationError.getCause return value is InvocationTargetException type, this should the method.invoke() throws which used to indicate the execution Method internal error, but the actual IPublicationErrorHandler is to want to know what internally thrown exception Handler Method is that, but had to call twice getCause at this moment .PublicationError.getCause().getCause() to get the internal error, whether can consider to optimize the API, add getError, or getRootCause. GetHandlerCause etc, returned directly thrown internal error in handler method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants