pub enum CallError {
ArgumentError(LineCol, String),
EvalError(LineCol, String),
InternalError(LineCol, String),
IoError(Error),
NestedError(String),
SyntaxError,
}
Expand description
Command or function execution errors.
These are separate from the more generic Error
type because they are not annotated with the
specific callable that triggered the error. We add such annotation once we capture the error
within the evaluation logic.
Variants§
ArgumentError(LineCol, String)
A specific parameter had an invalid value.
EvalError(LineCol, String)
Error while evaluating input arguments.
InternalError(LineCol, String)
Any other error not representable by other values.
IoError(Error)
I/O error during execution.
NestedError(String)
Hack to support errors that arise from within a program that is RUN
.
SyntaxError
General mismatch of parameters given to the function with expectations (different numbers, invalid types).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallError
impl !RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl !UnwindSafe for CallError
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