final | |
|---|---|
readonly | |
extends |
Error<array{code: -32022, message: non-empty-string, data: array{supported: list<string>, requested: string}}> |
Returned when the request's protocol version is unknown to the server or unsupported (e.g., a known
experimental or draft version the server has chosen not to implement). For HTTP, the response status
code MUST be 400 Bad Request.
| Methods | ||
|---|---|---|
public
|
__construct(string $requested, list<string> $supported, string $message = self::DEFAULT_MESSAGE)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Error |
|---|
jsonSerialize() |
| Constants | |||
|---|---|---|---|
public
|
string |
DEFAULT_MESSAGE = 'Unsupported protocol version'
|
# |
| Properties | |||
|---|---|---|---|
public
|
list<string>
|
$supported
|
# |
public
|
string
|
$requested
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Error |
|---|
$code, $message, $data |