pub enum OutputParserError {
ParseError(String),
JsonError(String),
TypeError(String),
Custom(String),
}Expand description
输出解析器的统一错误类型
Variants§
ParseError(String)
解析失败:输入格式不符合预期
JsonError(String)
JSON 格式错误
TypeError(String)
类型转换错误
Custom(String)
自定义错误
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