Enum whitespacers::WsErrorKind [] [src]

pub enum WsErrorKind {
    ParseError(usizeusizeusize),
    StackError,
    KeyError,
    InvalidIndex,
    CallStackError,
    DivisionError,
    IOError,
    RuntimeParseError,
    Overflow,
    InumOverflow(i64BigInt),
}

Simple information on what kind of error occurred.

Variants

Compile-time parse error

The stack was not of the correct size to execute an instruction.

A missing key was requested from the heap.

The program tried to execute an instruction that doesn't exist (generally caused by control flow hitting the end of the program).

The program tried to return but there was no location to return to on the callstack.

Division or Modulo by zero.

Something went wrong while trying to read from input or write to output.

The program tried to read a number but no number was given.

An overflow occurred during an arithmetric operation. This will normally not be returned unless fallback is disabled.

An overflow occurred when a number input was requested. This is a bit of a special case, as the state cannot be rewound to before the number was parsed. Therefore, the key where the number will be read to, and the oversized integer that was parsed are returned in the error, and the location at which the error occurred is set to be the operation after the failed inum operation. Again, this will not be returned unless fallback is disabled.

Trait Implementations

impl Debug for WsErrorKind
[src]

Formats the value using the given formatter.

impl Clone for WsErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more