Enum endbasic_core::syms::CallError
source · pub enum CallError {
ArgumentError(LineCol, String),
EvalError(Error),
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(Error)
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).