wasm_ast/model/
errors.rs

1use thiserror::Error;
2
3/// An error in a WebAssembly module model.
4#[derive(Error, Debug)]
5pub enum ModelError {
6    #[error("The module does not have enough space to add the given component. The indices in a WebAssembly module are limited by the capacity of a u32.")]
7    IndexOverflow(#[from] std::num::TryFromIntError),
8}