pub enum HermesError {
Config(String),
SessionNotFound(String),
ClaudeNotFound,
AgentSpawnFailed {
reason: String,
},
SlackApi(String),
Io(Error),
Json(Error),
Toml(Error),
Database(Error),
}Expand description
Errors that can occur in Hermes.
Variants§
Config(String)
Configuration file error (missing, invalid, etc.)
SessionNotFound(String)
Session not found for the given thread
ClaudeNotFound
Claude CLI binary not found in PATH
AgentSpawnFailed
Failed to spawn the Claude CLI process
SlackApi(String)
Slack API call failed
Io(Error)
Filesystem I/O error
Json(Error)
JSON serialization/deserialization error
Toml(Error)
TOML configuration parse error
Database(Error)
SQLite database error
Trait Implementations§
Source§impl Debug for HermesError
impl Debug for HermesError
Source§impl Display for HermesError
impl Display for HermesError
Source§impl Error for HermesError
impl Error for HermesError
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<Error> for HermesError
impl From<Error> for HermesError
Source§impl From<Error> for HermesError
impl From<Error> for HermesError
Source§impl From<Error> for HermesError
impl From<Error> for HermesError
Auto Trait Implementations§
impl Freeze for HermesError
impl !RefUnwindSafe for HermesError
impl Send for HermesError
impl Sync for HermesError
impl Unpin for HermesError
impl UnsafeUnpin for HermesError
impl !UnwindSafe for HermesError
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