euv_chart/geo/enum.rs
1/// The reasons a map cannot be read.
2///
3/// The errors say what is wrong with the *data*, because the data is
4/// the one thing the developer can fix: a map that is not drawn is
5/// never a rendering problem.
6#[derive(Clone, Debug, Default, PartialEq)]
7pub enum GeoError {
8 /// The document has no `type` field.
9 #[default]
10 MissingType,
11 /// The document is of a kind this crate does not read.
12 UnsupportedType(String),
13 /// A feature has no geometry.
14 MissingGeometry,
15 /// The geometry cannot be read.
16 MalformedGeometry(String),
17}