geocoder/errors.rs
1use thiserror::Error;
2
3/// GeocoderError is an enum that represents errors that can occur while using the Geocoder.
4#[derive(Debug, Error)]
5pub enum GeocoderError {
6 #[error("request failed")]
7 RequestFailed(#[from] reqwest::Error),
8
9 #[error("failed to parse response")]
10 ParseError(#[from] serde_json::Error),
11
12 #[error("address not found")]
13 AddressNotFound,
14}