pub enum SimpleAgentsError {
Provider(ProviderError),
Healing(HealingError),
Network(String),
Config(String),
Validation(ValidationError),
Cache(String),
Routing(String),
Serialization(Error),
}Expand description
Main error type for SimpleAgents operations.
Variants§
Provider(ProviderError)
Provider-specific error
Healing(HealingError)
Healing/coercion error
Network(String)
Network error
Config(String)
Configuration error
Validation(ValidationError)
Validation error
Cache(String)
Cache error
Routing(String)
Routing error
Serialization(Error)
Serialization error
Trait Implementations§
Source§impl Debug for SimpleAgentsError
impl Debug for SimpleAgentsError
Source§impl Display for SimpleAgentsError
impl Display for SimpleAgentsError
Source§impl Error for SimpleAgentsError
impl Error for SimpleAgentsError
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 SimpleAgentsError
impl From<Error> for SimpleAgentsError
Source§fn from(source: Error) -> SimpleAgentsError
fn from(source: Error) -> SimpleAgentsError
Converts to this type from the input type.
Source§impl From<HealingError> for SimpleAgentsError
impl From<HealingError> for SimpleAgentsError
Source§fn from(source: HealingError) -> SimpleAgentsError
fn from(source: HealingError) -> SimpleAgentsError
Converts to this type from the input type.
Source§impl From<ProviderError> for SimpleAgentsError
impl From<ProviderError> for SimpleAgentsError
Source§fn from(source: ProviderError) -> SimpleAgentsError
fn from(source: ProviderError) -> SimpleAgentsError
Converts to this type from the input type.
Source§impl From<ValidationError> for SimpleAgentsError
impl From<ValidationError> for SimpleAgentsError
Source§fn from(source: ValidationError) -> SimpleAgentsError
fn from(source: ValidationError) -> SimpleAgentsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimpleAgentsError
impl !RefUnwindSafe for SimpleAgentsError
impl Send for SimpleAgentsError
impl Sync for SimpleAgentsError
impl Unpin for SimpleAgentsError
impl !UnwindSafe for SimpleAgentsError
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