Enum gluon_vm::Error []

pub enum Error {
    Yield,
    Dead,
    UndefinedBinding(String),
    UndefinedField(TcType, String),
    TypeAlreadyExists(String),
    GlobalAlreadyExists(Symbol),
    MetadataDoesNotExist(String),
    WrongType(TcType, TcType),
    Message(String),
}

Representation of all possible errors that can occur when interacting with the vm crate

Variants

YieldDeadUndefinedBinding(String)UndefinedField(TcType, String)TypeAlreadyExists(String)GlobalAlreadyExists(Symbol)MetadataDoesNotExist(String)WrongType(TcType, TcType)Message(String)

Trait Implementations

impl PartialEq for Error
[src]

fn eq(&self, __arg_0: &Error) -> bool

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

fn ne(&self, __arg_0: &Error) -> bool

This method tests for !=.

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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