egml_io/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5    #[error(transparent)]
6    GmlError(#[from] egml_core::Error),
7    #[error(transparent)]
8    QuickXmlError(#[from] quick_xml::Error),
9    #[error(transparent)]
10    QuickXmlDeError(#[from] quick_xml::DeError),
11
12    #[error("the data for key `{0}` is not available")]
13    ElementNotFound(String),
14    #[error("the data for key is not available")]
15    Only3DSupported(),
16    #[error("the data for key is not available")]
17    MissingElements(),
18}