pub enum McpRepositoryError {
NotFound(String),
Conflict(String),
Internal(String),
}Expand description
Domain-specific errors for MCP repository operations.
This error type abstracts away storage implementation details and provides a clean interface for services to handle MCP storage failures.
Variants§
NotFound(String)
The requested MCP server was not found.
Conflict(String)
An MCP server with the same name already exists.
Internal(String)
Storage backend error (database, etc.).
Trait Implementations§
Source§impl Debug for McpRepositoryError
impl Debug for McpRepositoryError
Source§impl Display for McpRepositoryError
impl Display for McpRepositoryError
Source§impl Error for McpRepositoryError
impl Error for McpRepositoryError
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()
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 McpRepositoryError
impl RefUnwindSafe for McpRepositoryError
impl Send for McpRepositoryError
impl Sync for McpRepositoryError
impl Unpin for McpRepositoryError
impl UnwindSafe for McpRepositoryError
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