pub enum FCError {
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),
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)
InternalError(String)
Custom
Arbitrary error with custom code & message (mainly for tests)
Implementations§
Trait Implementations§
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