Class Nexus\Mcp\Core\Schema\Error\InvalidRequestError

final
readonly
extends Error<array{code: -32600, message: non-empty-string, data?: mixed}>

A JSON-RPC error indicating that the request is not a valid request object. This error is returned when the message structure does not conform to the JSON-RPC 2.0 specification requirements for a request (e.g., missing required fields like jsonrpc or method, or using invalid types for these fields).

Methods
Methods inherited from Nexus\Mcp\Core\Schema\Error
jsonSerialize()
Constants
Properties inherited from Nexus\Mcp\Core\Schema\Error
$code, $message, $data