pub type McpError = ErrorData;
Aliased Type§
pub struct McpError {
pub code: ErrorCode,
pub message: Cow<'static, str>,
pub data: Option<Value>,
}
Fields§
§code: ErrorCode
The error type that occurred.
message: Cow<'static, str>
A short description of the error. The message SHOULD be limited to a concise single sentence.
data: Option<Value>
Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).