1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error(transparent)]
    GmlError(#[from] egml_core::Error),
    #[error(transparent)]
    Io(#[from] quick_xml::DeError),

    #[error("the data for key `{0}` is not available")]
    ElementNotFound(String),
    #[error("the data for key is not available")]
    Only3DSupported(),
    #[error("the data for key is not available")]
    MissingElements(),
}