Enum wabt::script::Error [] [src]

pub enum Error {
    IoError(Error),
    WabtError(WabtError),
    Other(String),
    WithLineInfo {
        line: u64,
        error: Box<Error>,
    },
}

Error that can happen when parsing spec.

Variants

IO error happened during parsing or preparing to parse.

WABT reported an error while converting wast to json.

Other error represented by String.

Not a different kind of an error but just a wrapper for a error which we have a line number information.

Fields of WithLineInfo

Line number of the script on which just error happen.

Box with actual error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<WabtError> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error