Skip to content

[Feat]: a2a client failureHandler throwable cannot be caught #237

@mnlijian

Description

@mnlijian

Is your feature request related to a problem? Please describe.

I am currently reading the source code of a2a client and noticed that the callback method provided in the onError method of SSEEventListener is failureHandler.run(); This causes the throwable to be unable to be caught through the callback method.Unfavorable for abnormal printing and processing

Describe the solution you'd like

public void onError(Throwable throwable, Future<Void> future) { failureHandler.run(); future.cancel(true); // close SSE channel }
suggest:
In the source code, "failureHandler" is changed to "Consumer<?" super Throwable> errorConsumer

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions