Enum anchor_chain::AnchorChainError
source · pub enum AnchorChainError {
OpenAIError(OpenAIError),
TeraTemplateError(Error),
EmptyResponseError,
RequestError(Error),
ParseError(String),
InvalidInputError(String),
ModelError(String),
}Expand description
Defines errors types for Anchor Chain
Variants§
OpenAIError(OpenAIError)
Occurs when failing to construct OpenAI prompts, messages or when invoking the model fails.
TeraTemplateError(Error)
Error constructing or rendering Tera templates.
EmptyResponseError
Error when no response is returned from the LLM model.
RequestError(Error)
Generic error that occurs when serializing or deserializing a request.
ParseError(String)
InvalidInputError(String)
ModelError(String)
Generic error calling a model.
Trait Implementations§
source§impl Debug for AnchorChainError
impl Debug for AnchorChainError
source§impl Display for AnchorChainError
impl Display for AnchorChainError
source§impl Error for AnchorChainError
impl Error for AnchorChainError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 AnchorChainError
impl From<Error> for AnchorChainError
source§impl From<Error> for AnchorChainError
impl From<Error> for AnchorChainError
Auto Trait Implementations§
impl Freeze for AnchorChainError
impl !RefUnwindSafe for AnchorChainError
impl Send for AnchorChainError
impl Sync for AnchorChainError
impl Unpin for AnchorChainError
impl !UnwindSafe for AnchorChainError
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