final | |
|---|---|
readonly | |
extends |
Error<array{code: -32700, message: non-empty-string, data?: mixed}> |
A JSON-RPC error indicating that invalid JSON was received by the server. This error is returned when the server cannot parse the JSON text of a message.
| 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 = 'Parse error'
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Error |
|---|
$code, $message, $data |