Skip to main content

spatialrust_interchange/
error.rs

1//! Interchange errors.
2
3/// Result type for interchange adapters.
4pub type InterchangeResult<T> = Result<T, InterchangeError>;
5
6/// Failures converting scenes to/from interchange formats.
7#[derive(Debug, thiserror::Error)]
8pub enum InterchangeError {
9    /// Invalid configuration or payload.
10    #[error("invalid interchange configuration: {0}")]
11    InvalidConfiguration(String),
12    /// Unsupported schema subset.
13    #[error("unsupported interchange feature: {0}")]
14    Unsupported(String),
15}