pub enum FCError {
Show 14 variants
UnknownCommand(String),
Suggestion(String, String),
ParseError(String),
InsufficientData(String),
InvalidArgument(String),
TypeMismatch {
expected: String,
found: String,
context: String,
},
TypeCoercionFailed {
from: ValueKind,
to: ValueKind,
value: String,
},
UnsupportedType(String),
BackendError(String),
DuckDBConnectionError(String),
DuckDBQueryError(String),
DuckDBDataConversionError(String),
InternalError(String),
Custom {
code: String,
msg: String,
},
}
Expand description
Represents a FlowCode error with a specific code and message.
Variants§
UnknownCommand(String)
Suggestion(String, String)
ParseError(String)
InsufficientData(String)
InvalidArgument(String)
TypeMismatch
TypeCoercionFailed
UnsupportedType(String)
BackendError(String)
DuckDBConnectionError(String)
DuckDBQueryError(String)
DuckDBDataConversionError(String)
InternalError(String)
Custom
Arbitrary error with custom code & message (mainly for tests)
Implementations§
Trait Implementations§
Source§impl Error for FCError
impl Error for FCError
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()
impl StructuralPartialEq for FCError
Auto Trait Implementations§
impl Freeze for FCError
impl RefUnwindSafe for FCError
impl Send for FCError
impl Sync for FCError
impl Unpin for FCError
impl UnwindSafe for FCError
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