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),
}