1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

#[derive(Debug, Error)]
pub enum GooglePlacesError {
    #[error("API request failed: {0}")]
    ApiError(String),
    #[error("HTTP error: {0}")]
    HttpError(#[from] reqwest::Error),
    #[error("Invalid API key")]
    InvalidApiKey,
    // Add more custom error variants as needed
}