pub type Error = McpError;Expand description
v3.0 Error alias for migration (prefer McpError directly)
Aliased Type§
pub struct Error {
pub id: Uuid,
pub kind: ErrorKind,
pub message: String,
pub source_location: Option<String>,
pub context: Option<Box<ErrorContext>>,
pub timestamp: DateTime<Utc>,
}Fields§
§id: UuidAvailable on crate feature
rich-errors only.Unique error ID for tracing (only with rich-errors feature)
kind: ErrorKindError classification
message: StringHuman-readable error message
source_location: Option<String>Source location (file:line for debugging) Note: Never serialized to clients to prevent information leakage
context: Option<Box<ErrorContext>>Additional context (boxed to keep McpError small)
timestamp: DateTime<Utc>Available on crate feature
rich-errors only.Timestamp when error occurred (only with rich-errors feature)