pub enum AIError {
Claude(ClaudeError),
OpenAI(OpenAIError),
DeepSeek(DeepSeekError),
Mock(String),
}
Variants§
Trait Implementations§
Source§impl Error for AIError
impl Error for AIError
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<AIError> for QueryResolverError
impl From<AIError> for QueryResolverError
Source§impl From<ClaudeError> for AIError
impl From<ClaudeError> for AIError
Source§fn from(source: ClaudeError) -> Self
fn from(source: ClaudeError) -> Self
Converts to this type from the input type.
Source§impl From<DeepSeekError> for AIError
impl From<DeepSeekError> for AIError
Source§fn from(source: DeepSeekError) -> Self
fn from(source: DeepSeekError) -> Self
Converts to this type from the input type.
Source§impl From<OpenAIError> for AIError
impl From<OpenAIError> for AIError
Source§fn from(source: OpenAIError) -> Self
fn from(source: OpenAIError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AIError
impl RefUnwindSafe for AIError
impl Send for AIError
impl Sync for AIError
impl Unpin for AIError
impl UnwindSafe for AIError
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