Enum cretonne_wasm::WasmError[][src]

pub enum WasmError {
    InvalidWebAssembly {
        message: &'static str,
        offset: usize,
    },
    Unsupported(&'static str),
    ImplLimitExceeded,
}

A WebAssembly translation error.

When a WebAssembly function can't be translated, one of these error codes will be returned to describe the failure.

Variants

The input WebAssembly code is invalid.

This error code is used by a WebAssembly translator when it encounters invalid WebAssembly code. This should never happen for validated WebAssembly code.

Fields of InvalidWebAssembly

A string describing the validation error.

The bytecode offset where the error occurred.

A feature used by the WebAssembly code is not supported by the embedding environment.

Embedding environments may have their own limitations and feature restrictions.

An implementation limit was exceeded.

Cretonne can compile very large and complicated functions, but the implementation has limits that cause compilation to fail when they are exceeded.

Methods

impl WasmError
[src]

Convert from a BinaryReaderError to a WasmError.

Trait Implementations

impl Fail for WasmError
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for WasmError
[src]

Formats the value using the given formatter. Read more

impl Debug for WasmError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for WasmError
[src]

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

This method tests for !=.

impl Eq for WasmError
[src]

Auto Trait Implementations

impl Send for WasmError

impl Sync for WasmError