Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Feat]: Proposal to move to RuntimeExceptions from checked exceptions in the SDK #320

Copy link
Copy link
@emmanuelbernard

Description

@emmanuelbernard
Issue body actions

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

I see that A2AException inherits IOException and therefore is checked.
It is very unusual for a SDK or framework these days to use checked exceptions as opposed to RuntimeExceptions.
The programming model in Java settled for very little checked exceptions to avoid the infamous, Catch wrap and rethrow model that adds nothing to the flow.
Same for A2AClientError which incidentally is not a Java Error 9so maybe some renaming could be useful.

What were the key reasons to embrace checked exceptions?
Can we revisit?

Describe the solution you'd like

Move A2AException to extend RuntimeException
Move A2AClientError to extend RuntimeException

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Reactions are currently unavailable

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.