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 | ||
|---|---|---|
public
|
__construct(string $message, mixed $data = null)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Error |
|---|
jsonSerialize() |
| Constants | |||
|---|---|---|---|
public
|
string |
DEFAULT_MESSAGE = 'Invalid request'
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Error |
|---|
$code, $message, $data |