1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5 #[error("Couldn't parse URL: {0}")]
6 UrlParse(#[from] url::ParseError),
7
8 #[error("Shodan API error: {0}")]
9 Shodan(String),
10
11 #[error("Caught reqwest error: {0}")]
12 Reqwest(#[from] reqwest::Error),
13}