Package org.a2aproject.sdk.spec
Class A2AClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.spec.A2AException
org.a2aproject.sdk.spec.A2AClientException
- All Implemented Interfaces:
Serializable
Exception indicating a client-side failure in A2A Protocol operations.
This exception is thrown by A2A client implementations when encountering errors during communication with agents, response validation, or client-side processing.
Common scenarios:
- Network communication failures
- Invalid agent responses (
A2AClientError) - HTTP errors (
A2AClientHTTPError) - JSON parsing errors (
A2AClientJSONError)
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new A2AClientException with no detail message or cause.A2AClientException(String msg) Constructs a new A2AClientException with the specified detail message.A2AClientException(String msg, Throwable cause) Constructs a new A2AClientException with the specified detail message and cause.A2AClientException(Throwable cause) Constructs a new A2AClientException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
A2AClientException
public A2AClientException()Constructs a new A2AClientException with no detail message or cause. -
A2AClientException
Constructs a new A2AClientException with the specified detail message.- Parameters:
msg- the detail message
-
A2AClientException
Constructs a new A2AClientException with the specified cause.- Parameters:
cause- the cause of this exception
-
A2AClientException
Constructs a new A2AClientException with the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause of this exception
-