pub enum McpError {
InvalidParams(String),
NotFound(String),
Internal(String),
}Expand description
Errors returned by MCP tool, resource, prompt, or protocol handlers.
Variants§
InvalidParams(String)
Invalid or missing parameters (-32602).
NotFound(String)
Requested tool, resource, or prompt was not found (-32601).
Internal(String)
Internal execution failure (-32603).
Trait Implementations§
impl Eq for McpError
Source§impl Error for McpError
impl Error for McpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for McpError
Auto Trait Implementations§
impl Forget for McpError
impl Freeze for McpError
impl Move for McpError
impl RefUnwindSafe for McpError
impl Send for McpErrorwhere
RawVecInner: Send,
impl Sync for McpErrorwhere
RawVecInner: Sync,
impl Unpin for McpError
impl UnsafeUnpin for McpError
impl UnwindSafe for McpErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.