final | |
|---|---|
readonly | |
extends |
Error<array{code: -32603, message: non-empty-string, data?: mixed}> |
A JSON-RPC error indicating that an internal error occurred on the receiver. This error is returned when the receiver encounters an unexpected condition that prevents it from fulfilling the request.
| 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 = 'Internal error'
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Error |
|---|
$code, $message, $data |