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
IoError(Error)
IO error happened during parsing or preparing to parse.
WabtError(WabtError)
WABT reported an error while converting wast to json.
Other(String)
Other error represented by String.
WithLineInfo
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: u64 | Line number of the script on which just error happen. |
error: Box<Error> | Box with actual error. |
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more