Skip to content

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

@emmanuelbernard

Description

@emmanuelbernard

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

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions