Skip to content

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

@juejin-wuyang

Description

@juejin-wuyang

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions