Module errors

Source
Expand description

Error harmonization and convenience utilities

This module provides a unified approach to error handling across the PulseEngine MCP framework. It includes common error types, conversion utilities, and patterns that make it easier for backend implementers and framework users to handle errors consistently.

Modules§

prelude
Common error handling prelude

Structs§

Error
Core MCP error type

Enums§

CommonError
Common error types that backend implementers often need
ErrorCode
MCP error codes following JSON-RPC 2.0 specification

Traits§

BackendErrorExt
Extension trait for backend error handling
ErrorContext
Extension trait for adding context to errors
ErrorContextExt
Extension trait for converting errors into standard error contexts

Type Aliases§

CommonResult
Common result type for backend implementations
McpResult
Preferred result type alias that doesn’t conflict with std::result::Result