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    Io(#[from] quick_xml::DeError),
9
10    #[error("the data for key `{0}` is not available")]
11    ElementNotFound(String),
12    #[error("the data for key is not available")]
13    Only3DSupported(),
14    #[error("the data for key is not available")]
15    MissingElements(),
16}