pub enum ArgusError {
Io(Error),
Config(String),
Git(String),
Parse(String),
Llm(String),
Serialization(Error),
Toml(Error),
FileNotFound(PathBuf),
Embedding(String),
Database(String),
}Expand description
Errors that can occur across the Argus platform.
Each variant wraps a specific error domain. Library crates use this type
directly; the binary crate converts to anyhow::Error at the boundary.
§Examples
use argus_core::ArgusError;
let err = ArgusError::Config("missing API key".into());
assert!(err.to_string().contains("missing API key"));Variants§
Io(Error)
Filesystem I/O failure.
Config(String)
Invalid or missing configuration.
Git(String)
Git operation failure.
Parse(String)
Source code parsing failure.
Llm(String)
LLM API or response error.
Serialization(Error)
JSON serialization / deserialization failure.
Toml(Error)
TOML deserialization failure.
FileNotFound(PathBuf)
A required file was not found.
Embedding(String)
Embedding API error.
Database(String)
Database operation failure.
Trait Implementations§
Source§impl Debug for ArgusError
impl Debug for ArgusError
Source§impl Display for ArgusError
impl Display for ArgusError
Source§impl Error for ArgusError
impl Error for ArgusError
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 ArgusError
impl From<Error> for ArgusError
Source§impl From<Error> for ArgusError
impl From<Error> for ArgusError
Auto Trait Implementations§
impl Freeze for ArgusError
impl !RefUnwindSafe for ArgusError
impl Send for ArgusError
impl Sync for ArgusError
impl Unpin for ArgusError
impl UnsafeUnpin for ArgusError
impl !UnwindSafe for ArgusError
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