Enum conch_runtime::error::ExpansionError [] [src]

pub enum ExpansionError {
    DivideByZero,
    NegativeExponent,
    BadAssig(String),
    EmptyParameter(StringString),
}

An error which may arise during parameter expansion.

Variants

Attempted to divide by zero in an arithmetic subsitution.

Attempted to raise to a negative power in an arithmetic subsitution.

Attempted to assign a special parameter, e.g. ${!:-value}.

Attempted to evaluate a null or unset parameter, i.e. ${var:?msg}.

Trait Implementations

impl PartialEq for ExpansionError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ExpansionError
[src]

impl Clone for ExpansionError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ExpansionError
[src]

[src]

Formats the value using the given formatter.

impl Error for ExpansionError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl Display for ExpansionError
[src]

[src]

Formats the value using the given formatter. Read more

impl IsFatalError for ExpansionError
[src]

[src]

Checks whether the error should be considered a "fatal" error.