Enum endbasic_core::syms::CallError[][src]

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

A specific parameter had an invalid value.

Tuple Fields of ArgumentError

0: String
EvalError(Error)

Error while evaluating input arguments.

Tuple Fields of EvalError

0: Error
InternalError(String)

Any other error not representable by other values.

Tuple Fields of InternalError

0: String
IoError(Error)

I/O error during execution.

Tuple Fields of IoError

0: Error
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

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.