MCPException class

Base MCP exception with enhanced error context

Implemented types
Implementers

Constructors

MCPException.new(String message, [dynamic originalError, StackTrace? originalStackTrace])
MCPException.withContext(String message, {dynamic originalError, StackTrace? originalStackTrace, String? errorCode, Map<String, dynamic>? context, bool recoverable = false, String? resolution})

Properties

context Map<String, dynamic>?
Additional context for debugging
final
errorCode String?
Error code for programmatic handling
final
hashCode int
The hash code for this object.
no setterinherited
message String
Error message
final
originalError → dynamic
Original error that caused this exception
final
originalStackTrace StackTrace?
Original stack trace
final
recoverable bool
Whether this error is recoverable
final
resolution String?
Suggestions for resolving the error
final
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited