Skip to main content

HasErrorObject

Trait HasErrorObject 

Source
pub trait HasErrorObject {
    // Required method
    fn error(&self) -> &JsonRpcErrorObject;
}
Expand description

Core MCP protocol types and error handling Exposes the error field on a JSONRPCErrorResponse. The schema’s Error interface maps to turul_rpc::error::JsonRpcErrorObject ({ code, message, data? }).

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§