pub enum CallError {
    ArgumentError(LineColString),
    EvalError(Error),
    InternalError(LineColString),
    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(LineColString)

A specific parameter had an invalid value.

§

EvalError(Error)

Error while evaluating input arguments.

§

InternalError(LineColString)

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§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.