pub enum Error {
Config(String),
Io(Error),
Serialization(String),
Session(String),
Channel(String),
Provider(String),
Tool(String),
Validation(String),
NotFound(String),
Unauthorized(String),
Internal(String),
}Expand description
The main error type for agent-diva operations
Variants§
Config(String)
Configuration errors
Io(Error)
I/O errors
Serialization(String)
Serialization errors
Session(String)
Session management errors
Channel(String)
Channel communication errors
Provider(String)
Provider (LLM) errors
Tool(String)
Tool execution errors
Validation(String)
Validation errors
NotFound(String)
Not found errors
Unauthorized access
Internal(String)
Internal errors
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()
Source§impl From<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(e: ConfigError) -> Self
fn from(e: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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