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