error.rs (315B)
1 use thiserror::Error; 2 3 #[derive(Debug, Error)] 4 pub enum GeocoderError { 5 #[error("sqlite error: {0}")] 6 Sqlite(#[from] rusqlite::Error), 7 #[error("io error: {0}")] 8 Io(#[from] std::io::Error), 9 #[error("country center not found for {country_id}")] 10 CountryCenterNotFound { country_id: String }, 11 }