Class JSONRPCErrorResponse_v0_3
java.lang.Object
org.a2aproject.sdk.compat03.spec.JSONRPCResponse_v0_3<Void>
org.a2aproject.sdk.compat03.spec.JSONRPCErrorResponse_v0_3
- All Implemented Interfaces:
JSONRPCMessage_v0_3
A JSON RPC error response.
-
Field Summary
Fields inherited from class JSONRPCResponse_v0_3
error, id, jsonrpc, resultFields inherited from interface JSONRPCMessage_v0_3
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionJSONRPCErrorResponse_v0_3(Object id, JSONRPCError_v0_3 error) JSONRPCErrorResponse_v0_3(String jsonrpc, Object id, Void result, JSONRPCError_v0_3 error) Constructs a JSON-RPC error response with all fields. -
Method Summary
Methods inherited from class JSONRPCResponse_v0_3
getError, getId, getJsonrpc, getResult
-
Constructor Details
-
JSONRPCErrorResponse_v0_3
Constructs a JSON-RPC error response with all fields.This constructor is used for JSON deserialization.
- Parameters:
jsonrpc- the JSON-RPC version (must be "2.0")id- the request ID, or null if the ID could not be determined from the requestresult- must be null for error responseserror- the error object describing what went wrong (required)- Throws:
IllegalArgumentException- if error is null
-
JSONRPCErrorResponse_v0_3
-
JSONRPCErrorResponse_v0_3
-