Class JSONParseError_v0_3
java.lang.Object
java.lang.Throwable
java.lang.Error
org.a2aproject.sdk.compat03.spec.JSONRPCError_v0_3
org.a2aproject.sdk.compat03.spec.JSONParseError_v0_3
- All Implemented Interfaces:
Serializable, A2AError_v0_3, Event_v0_3
JSON-RPC error indicating that the server received invalid JSON that could not be parsed.
This error is returned when the request payload is not valid JSON, such as malformed syntax,
unexpected tokens, or encoding issues. This is distinct from InvalidRequestError_v0_3,
which indicates structurally valid JSON that doesn't conform to the JSON-RPC specification.
Corresponds to JSON-RPC 2.0 error code -32700.
Usage example:
try {
objectMapper.readValue(payload, JSONRPCRequest.class);
} catch (org.a2aproject.sdk.compat03.json.JsonProcessingException e) {
throw new JSONParseError("Malformed JSON: " + e.getMessage());
}
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSONParseError_v0_3(Integer code, String message, Object data) JSONParseError_v0_3(String message) -
Method Summary
Methods inherited from class JSONRPCError_v0_3
getCode, getDataMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DEFAULT_CODE
-
-
Constructor Details
-
JSONParseError_v0_3
public JSONParseError_v0_3() -
JSONParseError_v0_3
-
JSONParseError_v0_3
-