ErrorCode class
Error codes this server sends.
JSON-RPC reserves -32768..-32000; the specification assigns the ones below. This package's own codes sit outside that range (-31000..-31019).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- headerMismatch → const int
-
MCP-Protocol-Versionheader and_metadisagree (2026-07-28). - incompatibleVersion → const int
- internalError → const int
- invalidParams → const int
- invalidRequest → const int
- methodNotFound → const int
- missingRequiredClientCapability → const int
- A request needs a client capability the request did not declare (2026-07-28).
- networkError → const int
- operationCancelled → const int
- parseError → const int
- permissionDenied → const int
- promptNotFound → const int
- An invalid prompt name. Every revision answers it with invalidParams.
- protocolError → const int
- rateLimited → const int
- resourceNotFound → const int
- Resource not found (2024-11-05 .. 2025-11-25). 2026-07-28 answers an unknown resource with invalidParams instead.
- timeout → const int
- toolNotFound → const int
- An unknown tool. Every revision answers it with invalidParams.
- unsupportedProtocolVersion → const int
- Protocol version not supported (2026-07-28).
- urlElicitationRequired → const int
- URL elicitation required (2025-11-25+).