2022-11-29 12:05:43 -06:00
|
|
|
//! Error types.
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
pub enum FrontendError {
|
|
|
|
UnsupportedFeature(String),
|
2022-11-29 12:36:45 -06:00
|
|
|
TooLarge(String),
|
2022-11-29 12:05:43 -06:00
|
|
|
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 {}
|