Module prelude

Source
Expand description

Common error handling prelude

Import this to get access to the most commonly used error types and utilities:

use pulseengine_mcp_protocol::errors::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