#[non_exhaustive]pub enum OutputParserError {
ParseError(String),
JsonError(String),
TypeError(String),
Custom(String),
}Expand description
Unified error type for output parsers
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ParseError(String)
Parse failure: the input format does not match expectations
JsonError(String)
JSON format error
TypeError(String)
Type conversion error
Custom(String)
Custom error
Trait Implementations§
Source§impl Clone for OutputParserError
impl Clone for OutputParserError
Source§fn clone(&self) -> OutputParserError
fn clone(&self) -> OutputParserError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputParserError
impl Debug for OutputParserError
Source§impl Display for OutputParserError
impl Display for OutputParserError
Source§impl Error for OutputParserError
impl Error for OutputParserError
1.30.0 · 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 OutputParserError
impl From<Error> for OutputParserError
Source§impl From<OutputParserError> for LcelError
impl From<OutputParserError> for LcelError
Source§fn from(e: OutputParserError) -> Self
fn from(e: OutputParserError) -> Self
Converts to this type from the input type.
Source§impl From<OutputParserError> for CoreError
impl From<OutputParserError> for CoreError
Source§fn from(source: OutputParserError) -> Self
fn from(source: OutputParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutputParserError
impl RefUnwindSafe for OutputParserError
impl Send for OutputParserError
impl Sync for OutputParserError
impl Unpin for OutputParserError
impl UnsafeUnpin for OutputParserError
impl UnwindSafe for OutputParserError
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