final | |
|---|---|
readonly | |
extends |
Error<array{code: -32601, message: non-empty-string, data?: mixed}> |
A JSON-RPC error indicating that the requested method does not exist or is not available. In MCP, a server returns this error when a client invokes a method the server does not
implement — either a genuinely unknown method, or one gated behind a server capability the
server did not advertise (e.g., calling prompts/list when the prompts capability was not
advertised). A request that requires a client capability the client did not declare is signalled instead
by MissingRequiredClientCapabilityError (-32021).
| 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 = 'Method not found'
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Error |
|---|
$code, $message, $data |