final | |
|---|---|
readonly | |
implements |
Arrayable<array{jsonrpc: '2.0', id?: (int|non-empty-string), error: template-type<Error, Arrayable, 'T'>}>, JsonRpcResponse |
A response to a request that indicates an error occurred.
| Methods | ||
|---|---|---|
public
|
__construct(?RequestId $id, Error $error)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array{jsonrpc: '2.0', id?: (int|non-empty-string), error: template-type<Error, Arrayable, 'T'>}
|
# |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
|
?RequestId
|
$id
|
# |
public
|
Error
|
$error
|
# |