pub enum AonyxError {
Config(String),
Provider(String),
Memory(String),
Tool(String),
Skill(String),
Mcp(String),
Adapter(String),
ApprovalRejected(String),
Io(Error),
Json(Error),
}Expand description
Every fallible operation in the workspace returns Result<T> = std::result::Result<T, AonyxError>.
Variants§
Config(String)
Configuration is missing or malformed.
Provider(String)
LLM provider returned an error or could not be reached.
Memory(String)
Memory palace operation failed (KG, diary, search, indexing).
Tool(String)
Tool invocation failed before, during, or after execution.
Skill(String)
Skill could not be loaded, matched, or executed.
Mcp(String)
MCP client or server protocol error.
Adapter(String)
Channel adapter (Telegram / Discord / HTTP server) failure.
ApprovalRejected(String)
A destructive action was rejected by the approval gate.
Io(Error)
Underlying filesystem / network I/O failure.
Json(Error)
JSON (de)serialization failure.
Trait Implementations§
Source§impl Debug for AonyxError
impl Debug for AonyxError
Source§impl Display for AonyxError
impl Display for AonyxError
Source§impl Error for AonyxError
impl Error for AonyxError
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 AonyxError
impl From<Error> for AonyxError
Auto Trait Implementations§
impl !RefUnwindSafe for AonyxError
impl !UnwindSafe for AonyxError
impl Freeze for AonyxError
impl Send for AonyxError
impl Sync for AonyxError
impl Unpin for AonyxError
impl UnsafeUnpin for AonyxError
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