Skip to content

Commit f408a68

Browse files
committed
Make A2AError extend RuntimeException instead of Error
1 parent ccb34ad commit f408a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/src/main/java/io/a2a/spec/A2AError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @see <a href="https://www.jsonrpc.org/specification#error_object">JSON-RPC 2.0 Error Object</a>
2828
* @see <a href="https://a2a-protocol.org/latest/">A2A Protocol Specification</a>
2929
*/
30-
public class A2AError extends Error implements Event {
30+
public class A2AError extends RuntimeException implements Event {
3131
/**
3232
* The numeric error code (see JSON-RPC 2.0 spec for standard codes).
3333
*/

0 commit comments

Comments
 (0)