Class A2AClientJSONError_v0_3

All Implemented Interfaces:
Serializable

public class A2AClientJSONError_v0_3 extends A2AClientError_v0_3
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 Details

    • A2AClientJSONError_v0_3

      public A2AClientJSONError_v0_3()
    • A2AClientJSONError_v0_3

      public A2AClientJSONError_v0_3(String message)
    • A2AClientJSONError_v0_3

      public A2AClientJSONError_v0_3(String message, Throwable cause)