Enum ketos::error::Error [] [src]

pub enum Error {
    CompileError(CompileError),
    DecodeError(DecodeError),
    EncodeError(EncodeError),
    ExecError(ExecError),
    IoError(IoError),
    ParseError(ParseError),
    RestrictError(RestrictError),
    Custom(Box<StdError>),
}

Consolidated error type; contains one of a category of errors.

Variants

Error in compiling code to bytecode

Error in decoding bytecode file format

Error in encoding bytecode file format

Error in executing code

Error in file I/O operation

Error in scanning text or parsing syntax

Code execution breached configured restrictions

Customized error value implementing std::error::Error

Methods

impl Error
[src]

Returns an Error value wrapping a custom error type.

Returns a string describing the nature of the error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl NameDisplay for Error
[src]

Writes the value's display representation to the formatter stream.

impl From<CompileError> for Error
[src]

Performs the conversion.

impl From<DecodeError> for Error
[src]

Performs the conversion.

impl From<EncodeError> for Error
[src]

Performs the conversion.

impl From<ExecError> for Error
[src]

Performs the conversion.

impl From<IoError> for Error
[src]

Performs the conversion.

impl From<ParseError> for Error
[src]

Performs the conversion.

impl From<RestrictError> for Error
[src]

Performs the conversion.

impl From<Box<StdError>> for Error
[src]

Performs the conversion.

impl StdError for Error
[src]

A short description of the error. Read more

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