pub enum Error {
NoContext,
InvalidArgument {
field: &'static str,
value: String,
valid_values: &'static str,
},
IssueNotFound(String),
WorkspaceNotFound {
path: String,
source: Option<Error>,
},
WorkspaceNotInitialized(String),
NoRivetsDirectory(String),
ConfigLoad {
path: String,
reason: String,
},
Storage(Error),
Io(Error),
Json(Error),
Mcp(String),
}Expand description
Errors that can occur in the rivets MCP server.
Variants§
NoContext
No workspace context has been set.
InvalidArgument
Invalid argument value provided.
Fields
IssueNotFound(String)
The requested issue was not found.
WorkspaceNotFound
The specified workspace was not found or path is invalid.
Fields
WorkspaceNotInitialized(String)
Workspace exists but was not initialized via set_context.
NoRivetsDirectory(String)
Failed to discover a rivets workspace.
ConfigLoad
Failed to load workspace configuration.
Storage(Error)
An error from the rivets storage layer.
Io(Error)
An I/O error occurred.
Json(Error)
JSON serialization/deserialization error.
Mcp(String)
MCP protocol error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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