Class InvalidParamsError_v0_3
java.lang.Object
java.lang.Throwable
java.lang.Error
org.a2aproject.sdk.compat03.spec.JSONRPCError_v0_3
org.a2aproject.sdk.compat03.spec.InvalidParamsError_v0_3
- All Implemented Interfaces:
Serializable, A2AError_v0_3, Event_v0_3
JSON-RPC error indicating that method parameters are invalid or missing required fields.
This error is returned when a JSON-RPC method is called with parameters that fail validation. Common causes include:
- Missing required parameters
- Parameters of incorrect type
- Parameter values outside acceptable ranges
- Malformed parameter structures
Corresponds to JSON-RPC 2.0 error code -32602.
Usage example:
// Default error with standard message
throw new InvalidParamsError();
// Custom error message
throw new InvalidParamsError("taskId parameter is required");
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInvalidParamsError_v0_3(Integer code, String message, Object data) InvalidParamsError_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
-
InvalidParamsError_v0_3
-
InvalidParamsError_v0_3
-
InvalidParamsError_v0_3
public InvalidParamsError_v0_3()
-