use super::types::EuclideanType;
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum DynkinError {
NonzeroIdeal {
relations: usize,
},
NotDynkin {
euclidean: Option<EuclideanType>,
},
}
display_error! { error DynkinError {
Self::NonzeroIdeal { relations } => "the algebra has {relations} relations; Gabriel's theorem needs the full path algebra";
Self::NotDynkin { euclidean: None } => "the underlying graph is not a Dynkin diagram";
Self::NotDynkin { euclidean: Some(t) } => "the underlying graph is {t}, not a Dynkin diagram";
} }