Skip to main content

panorama_tiler/
error.rs

1use fast_image_resize::ResizeError;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum TilerError {
6    #[error("I/O error occurred: {0}")]
7    Io(#[from] std::io::Error),
8
9    #[error("Image manipulation error: {0}")]
10    Image(#[from] image::ImageError),
11
12    #[error("JSON processing error: {0}")]
13    Json(#[from] serde_json::Error),
14
15    #[error("Invalid configuration value: {0}")]
16    InvalidConfig(String),
17
18    #[error("Can't resize image: {0}")]
19    ResizeError(#[from] ResizeError),
20}