rustial 1.0.0

Scientific-grade 2.5D geospatial map library for Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Top-level error type for rustial.

use thiserror::Error;

/// Top-level error type for the rustial library.
#[derive(Debug, Clone, Error)]
pub enum RustialError {
    /// An error from the tile engine.
    #[error("tile error: {0}")]
    Tile(#[from] rustial_engine::TileError),
    /// An error from the terrain system.
    #[error("terrain error: {0}")]
    Terrain(#[from] rustial_engine::TerrainError),
    /// A configuration or usage error.
    #[error("{0}")]
    Config(String),
}