Expand description
Error Types - Consolidated Protocol Error Handling
This module consolidates error types from multiple sources:
src/shared/protocol/errors.rs(MCP protocol errors)src/transport/mcp/error.rs(MCP transport errors)- Error handling patterns from
src/base/jsonrpc/(JSON-RPC errors)
§Consolidation Strategy
Phase 2 Migration Plan:
- Consolidate all protocol-related error types into a unified hierarchy
- Preserve specific error context and diagnostic information
- Maintain error conversion traits for backward compatibility
- Follow Rust error handling best practices
§Architecture Goals
- Comprehensive Coverage: Handle all protocol error scenarios
- Type Safety: Strong typing for different error categories
- Diagnostic Information: Rich error context for debugging
- Conversion Support: Easy conversion between error types
Enums§
- Json
RpcError - Placeholder for JSON-RPC specific errors Will be populated with actual implementation during Phase 2 migration
- McpError
- Placeholder for MCP specific errors Will be populated with actual implementation during Phase 2 migration
- Protocol
Error - Placeholder for Protocol Error enumeration Will be populated with actual implementation during Phase 2 migration
Type Aliases§
- Protocol
Result - Convenient result type for protocol operations