pub enum McpServiceError {
Repository(McpRepositoryError),
StartFailed(String),
StopFailed(String),
NotRunning(String),
Protocol(String),
ToolError(String),
InvalidConfig(String),
Internal(String),
}Expand description
Domain-specific errors for MCP service operations.
This error type wraps repository errors and adds service-level failure modes without leaking infrastructure details (OS process errors, SQL errors, etc.).
Variants§
Repository(McpRepositoryError)
Repository operation failed.
StartFailed(String)
Server process failed to start.
StopFailed(String)
Server process failed to stop.
NotRunning(String)
Server is not running (e.g., when trying to stop).
Protocol(String)
Protocol error (JSON-RPC communication failure).
ToolError(String)
Tool invocation failed.
InvalidConfig(String)
Configuration validation error.
Internal(String)
Internal service error.
Trait Implementations§
Source§impl Debug for McpServiceError
impl Debug for McpServiceError
Source§impl Display for McpServiceError
impl Display for McpServiceError
Source§impl Error for McpServiceError
impl Error for McpServiceError
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()
Source§impl From<&McpServiceError> for McpErrorCategory
impl From<&McpServiceError> for McpErrorCategory
Source§fn from(error: &McpServiceError) -> Self
fn from(error: &McpServiceError) -> Self
Converts to this type from the input type.
Source§impl From<McpRepositoryError> for McpServiceError
impl From<McpRepositoryError> for McpServiceError
Source§fn from(source: McpRepositoryError) -> Self
fn from(source: McpRepositoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for McpServiceError
impl RefUnwindSafe for McpServiceError
impl Send for McpServiceError
impl Sync for McpServiceError
impl Unpin for McpServiceError
impl UnwindSafe for McpServiceError
Blanket Implementations§
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