[][src]Enum spaik::error::ErrorKind

pub enum ErrorKind {
    IllegalInstruction {
        inst: R8C,
    },
    TypeError {
        expect: SymID,
        got: SymID,
        op: SymID,
        argn: u32,
    },
    TypeNError {
        expect: Vec<SymID>,
        got: SymID,
        op: SymID,
        argn: u32,
    },
    ArgTypeError {
        expect: Vec<SymID>,
        got: Vec<SymID>,
        op: SymID,
    },
    EnumError {
        expect: Vec<SymID>,
        got: SymID,
        op: SymID,
        argn: u32,
    },
    ArgError {
        expect: ArgSpec,
        got_num: u32,
        op: SymID,
    },
    OutsideContext {
        op: SymID,
        ctx: SymID,
    },
    SyntaxError {
        msg: String,
    },
    LinkError {
        dst: String,
        src: usize,
    },
    IDError {
        id: usize,
    },
    ConversionError {
        from: &'static str,
        to: &'static str,
        val: String,
    },
    NotEnough {
        expect: usize,
        got: usize,
        op: &'static str,
    },
    SomeError {
        msg: String,
    },
    UndefinedFunction {
        name: SymID,
    },
    UndefinedVariable {
        var: SymID,
    },
    ModuleLoadError {
        lib: SymID,
    },
    Unsupported {
        op: &'static str,
    },
    IllegalVariableDeclaration {
        decl: Value,
    },
    Traceback {
        tb: Box<Traceback>,
    },
    IndexError {
        idx: usize,
    },
    Exit {
        status: SymID,
    },
}

Variants

IllegalInstruction

Fields of IllegalInstruction

inst: R8C
TypeError

Fields of TypeError

expect: SymIDgot: SymIDop: SymIDargn: u32
TypeNError

Fields of TypeNError

expect: Vec<SymID>got: SymIDop: SymIDargn: u32
ArgTypeError

Fields of ArgTypeError

expect: Vec<SymID>got: Vec<SymID>op: SymID
EnumError

Fields of EnumError

expect: Vec<SymID>got: SymIDop: SymIDargn: u32
ArgError

Fields of ArgError

expect: ArgSpecgot_num: u32op: SymID
OutsideContext

Fields of OutsideContext

op: SymIDctx: SymID
SyntaxError

Fields of SyntaxError

msg: String
LinkError

Fields of LinkError

dst: Stringsrc: usize
IDError

Fields of IDError

id: usize
ConversionError

Fields of ConversionError

from: &'static strto: &'static strval: String
NotEnough

Fields of NotEnough

expect: usizegot: usizeop: &'static str
SomeError

Fields of SomeError

msg: String
UndefinedFunction

Fields of UndefinedFunction

name: SymID
UndefinedVariable

Fields of UndefinedVariable

var: SymID
ModuleLoadError

Fields of ModuleLoadError

lib: SymID
Unsupported

Fields of Unsupported

op: &'static str
IllegalVariableDeclaration

Fields of IllegalVariableDeclaration

decl: Value
Traceback

Fields of Traceback

tb: Box<Traceback>
IndexError

Fields of IndexError

idx: usize
Exit

Fields of Exit

status: SymID

Trait Implementations

impl Clone for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Error for ErrorKind[src]

impl From<ErrorKind> for Error[src]

impl From<ErrorKind> for RuntimeError[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[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> ToString for T where
    T: Display + ?Sized
[src]

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.