Class InvalidParamsError_v0_3

All Implemented Interfaces:
Serializable, A2AError_v0_3, Event_v0_3

public class InvalidParamsError_v0_3 extends JSONRPCError_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 Details

    • DEFAULT_CODE

      public static final Integer DEFAULT_CODE
  • Constructor Details

    • InvalidParamsError_v0_3

      public InvalidParamsError_v0_3(Integer code, String message, Object data)
    • InvalidParamsError_v0_3

      public InvalidParamsError_v0_3(String message)
    • InvalidParamsError_v0_3

      public InvalidParamsError_v0_3()