Repository navigation
Expand file tree
/
Copy pathA2AClientException.java
More file actions
57 lines (52 loc) · 1.62 KB
/
Copy pathA2AClientException.java
File metadata and controls
57 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package io.a2a.spec;
/**
* Exception indicating a client-side failure in A2A Protocol operations.
* <p>
* This exception is thrown by A2A client implementations when encountering errors
* during communication with agents, response validation, or client-side processing.
* <p>
* Common scenarios:
* <ul>
* <li>Network communication failures</li>
* <li>Invalid agent responses ({@link A2AClientError})</li>
* <li>HTTP errors ({@link A2AClientHTTPError})</li>
* <li>JSON parsing errors ({@link A2AClientJSONError})</li>
* </ul>
*
* @see A2AException for the base exception class
* @see A2AServerException for server-side errors
* @see A2AClientError for more specific client errors
*/
public class A2AClientException extends A2AException {
/**
* Constructs a new A2AClientException with no detail message or cause.
*/
public A2AClientException() {
super();
}
/**
* Constructs a new A2AClientException with the specified detail message.
*
* @param msg the detail message
*/
public A2AClientException(final String msg) {
super(msg);
}
/**
* Constructs a new A2AClientException with the specified cause.
*
* @param cause the cause of this exception
*/
public A2AClientException(final Throwable cause) {
super(cause);
}
/**
* Constructs a new A2AClientException with the specified detail message and cause.
*
* @param msg the detail message
* @param cause the cause of this exception
*/
public A2AClientException(final String msg, final Throwable cause) {
super(msg, cause);
}
}