MCPNetworkException class
Network error
- Inheritance
-
- Object
- MCPException
- MCPNetworkException
Constructors
-
MCPNetworkException.new(String message, {int? statusCode, String? responseBody, dynamic originalError, StackTrace? stackTrace, String? errorCode, Map<
String, dynamic> ? context, bool recoverable = false, String? resolution})
Properties
-
context
→ Map<
String, dynamic> ? -
Additional context for debugging
finalinherited
- errorCode → String?
-
Error code for programmatic handling
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Error message
finalinherited
- originalError → dynamic
-
Original error that caused this exception
finalinherited
- originalStackTrace → StackTrace?
-
Original stack trace
finalinherited
- recoverable → bool
-
Whether this error is recoverable
finalinherited
- resolution → String?
-
Suggestions for resolving the error
finalinherited
- responseBody → String?
-
Response body (if available)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
HTTP status code (if applicable)
final
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