1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use object::write::Error as ObjectWriteError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum ObjectError {
#[error("Binary format {0} not supported")]
UnsupportedBinaryFormat(String),
#[error("Architecture {0} not supported")]
UnsupportedArchitecture(String),
#[error("Unknown Endianness")]
UnknownEndianness,
#[error("Error when writing the object: {0}")]
Write(#[from] ObjectWriteError),
#[error("Error when serializing the given module: {0}")]
Serialize(#[from] wasmer_types::SerializeError),
}