Class A2AClientJSONError_v0_3
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.compat03.spec.A2AClientError_v0_3
org.a2aproject.sdk.compat03.spec.A2AClientJSONError_v0_3
- All Implemented Interfaces:
Serializable
Client exception indicating a JSON serialization or deserialization error.
This exception is thrown when the A2A client SDK encounters errors while parsing JSON responses from agents or serializing requests. This typically indicates:
- Malformed JSON in agent responses
- Unexpected JSON structure or field types
- Missing required JSON fields
- JSON encoding/decoding errors
Usage example:
try {
AgentCard card = objectMapper.readValue(json, AgentCard.class);
} catch (org.a2aproject.sdk.compat03.json.JsonProcessingException e) {
throw new A2AClientJSONError("Failed to parse agent card", e);
}
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionA2AClientJSONError_v0_3(String message) A2AClientJSONError_v0_3(String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
A2AClientJSONError_v0_3
public A2AClientJSONError_v0_3() -
A2AClientJSONError_v0_3
-
A2AClientJSONError_v0_3
-