waffle/src/errors.rs
Chris Fallin 6373cfd665
WIP.
2022-11-29 10:36:45 -08:00

17 lines
349 B
Rust

//! Error types.
#[derive(Clone, Debug)]
pub enum FrontendError {
UnsupportedFeature(String),
TooLarge(String),
Internal(String),
}
impl std::fmt::Display for FrontendError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
std::fmt::Debug::fmt(self, f)
}
}
impl std::error::Error for FrontendError {}