1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error(transparent)]
6 Io(#[from] std::io::Error),
7 #[error(transparent)]
8 QuickXmlError(#[from] quick_xml::Error),
9 #[error(transparent)]
10 QuickXmlDeError(#[from] quick_xml::DeError),
11 #[error(transparent)]
12 QuickXmlSeError(#[from] quick_xml::SeError),
13 #[error(transparent)]
14 GmlIoError(#[from] egml::io::Error),
15
16 #[error("file extension is invalid")]
17 NoFileExtension(),
18 #[error("file extension `{0}` is invalid")]
19 InvalidFileExtension(String),
20 #[error("the data for key `{0}` is not available")]
21 ElementNotFound(String),
22 #[error("attribute has no name: `{0}")]
23 AttributeWithoutName(String),
24}