Package org.a2aproject.sdk.spec
Class A2AClientError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.spec.A2AClientError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
A2AClientHTTPError,A2AClientInvalidArgsError,A2AClientInvalidStateError,A2AClientJSONError
Base exception for A2A client-specific error conditions.
This is a specialized exception hierarchy for client-side errors, distinct from
A2AClientException. It is used for errors that occur during client SDK
operations such as validation, state management, and protocol handling.
Specialized subclasses:
A2AClientHTTPError- HTTP transport errors with status codesA2AClientJSONError- JSON serialization/deserialization errorsA2AClientInvalidStateError- Invalid client state errorsA2AClientInvalidArgsError- Invalid argument errors
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new A2AClientError with no detail message.A2AClientError(String message) Constructs a new A2AClientError with the specified detail message.A2AClientError(String message, Throwable cause) Constructs a new A2AClientError with the specified detail message and 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
-
A2AClientError
public A2AClientError()Constructs a new A2AClientError with no detail message. -
A2AClientError
Constructs a new A2AClientError with the specified detail message.- Parameters:
message- the detail message
-
A2AClientError
Constructs a new A2AClientError with the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause of this exception
-