pub enum ExecutorError {
InnerError(Box<dyn Error + Send + Sync>),
InvalidOptions,
PromptTokens(PromptTokensError),
ContextTooSmall,
}
Expand description
An error indicating that the model was not succesfully run.
Variants§
InnerError(Box<dyn Error + Send + Sync>)
An error occuring in the underlying executor code that doesn’t fit any other category.
InvalidOptions
An error indicating that the model was invoked with invalid options
PromptTokens(PromptTokensError)
An error tokenizing the prompt.
ContextTooSmall
Trait Implementations§
Source§impl Debug for ExecutorError
impl Debug for ExecutorError
Source§impl Display for ExecutorError
impl Display for ExecutorError
Source§impl Error for ExecutorError
impl Error for ExecutorError
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<ExecutorError> for Error
impl From<ExecutorError> for Error
Source§fn from(source: ExecutorError) -> Self
fn from(source: ExecutorError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutorError> for FormatAndExecuteError
impl From<ExecutorError> for FormatAndExecuteError
Source§fn from(source: ExecutorError) -> Self
fn from(source: ExecutorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutorError
impl !RefUnwindSafe for ExecutorError
impl Send for ExecutorError
impl Sync for ExecutorError
impl Unpin for ExecutorError
impl !UnwindSafe for ExecutorError
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