// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License. use std::fmt::Display; #[derive(Debug, Clone, PartialEq, Eq)] pub enum CompilerError { UnsupportedTypeSectionEntry(String), UnsupportedExportSectionEntry(String), UnsupportedImportSectionEntry(String), UnsupportedValType(String), UnsupportedMemory64Proposal, UnsupportedSection(String), } impl std::error::Error for CompilerError {} impl Display for CompilerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{:?}", self) } }