agent2agentSourceA2AError

class Error

Base error class for A2A protocol errors.

Each subclass carries its own JSON-RPC error code, HTTP status, and structured error data. The handler layer rescues these and calls #to_h to populate env["a2a.error"] for the binding layer.