Skip to content

Commit dcbc1ad

Browse files
authored
fix: Update A2AException and A2AClientError so that they extend RuntimeException instead of IOException (#379)
# Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [x] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [x] Appropriate READMEs were updated (if necessary) Fixes #320 🦕
1 parent f58d94b commit dcbc1ad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package io.a2a.spec;
22

3-
public class A2AClientError extends Exception {
3+
/**
4+
* Base exception for A2A Client errors.
5+
*/
6+
public class A2AClientError extends RuntimeException {
47
public A2AClientError() {
58
}
69

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package io.a2a.spec;
22

3-
import java.io.IOException;
4-
53
/**
64
* Exception to indicate a general failure related to the A2A protocol.
75
*/
8-
public class A2AException extends IOException {
6+
public class A2AException extends RuntimeException {
97

108
/**
119
* Constructs a new {@code A2AException} instance. The message is left blank ({@code null}), and no

0 commit comments

Comments
 (0)