McpError class
An error that becomes a JSON-RPC error response.
throw McpError(JsonRpcCode.invalidParams, 'Tool x not found');
- Implemented types
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
The
errormember of the response. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited