pub enum SleuthError {
NetworkError(String),
ParseError(String),
ApiError(String),
NotFound(String),
RateLimited,
OwnershipError(OwnershipError),
}Expand description
Errors that can occur during IP lookup operations
Variants§
NetworkError(String)
Represents network-related errors during IP lookups.
This includes connection failures, DNS issues, or timeouts.
ParseError(String)
Indicates that the response from an IP lookup couldn’t be parsed.
This typically occurs when an API returns data in an unexpected format.
ApiError(String)
Represents errors returned by external APIs during IP lookups.
This could include authentication failures or invalid request errors.
NotFound(String)
Indicates that requested IP information was not found.
This can occur when looking up information for an IP that isn’t allocated or isn’t in the database.
RateLimited
Indicates that requests are being rate-limited by an external API.
This typically requires waiting before making additional requests.
OwnershipError(OwnershipError)
Encapsulates an underlying ownership lookup error.
This occurs when ownership lookup operations fail during IP investigation.
Trait Implementations§
Source§impl Debug for SleuthError
impl Debug for SleuthError
Source§impl Display for SleuthError
impl Display for SleuthError
Source§impl Error for SleuthError
impl Error for SleuthError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()