[][src]Enum whitespacers::WsErrorKind

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

Simple information on what kind of error occurred.

Variants

ParseError(usizeusizeusize)

Compile-time parse error

StackError

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

KeyError

A missing key was requested from the heap.

InvalidIndex

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

CallStackError

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

DivisionError

Division or Modulo by zero.

IOError

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

RuntimeParseError

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

Overflow

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

InumOverflow(isizeBigInt)

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 Clone for WsErrorKind[src]

impl Debug for WsErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.