pub enum JudgementError {
RequestError(RequestorError),
NoJudgeUrl,
ParseError(String),
Timeout,
ProxyFailure(String),
Other(String),
}Expand description
Error types that can occur during proxy judgement
Variants§
RequestError(RequestorError)
Encapsulates an underlying requestor error.
This occurs when HTTP requests made during proxy testing fail.
NoJudgeUrl
Indicates that no judge URL was configured for testing proxies.
A judge URL is required to verify that proxies are working correctly.
ParseError(String)
Indicates that the response from a judge couldn’t be parsed.
This typically occurs when a judge returns data in an unexpected format.
Timeout
Indicates that a proxy check operation timed out.
This occurs when a proxy takes too long to respond during testing.
ProxyFailure(String)
Indicates that a proxy check failed.
This could be due to the proxy being offline, returning incorrect data, or otherwise not behaving as expected.
Other(String)
Represents miscellaneous errors that don’t fit other categories.
This is a catch-all for errors that aren’t covered by more specific variants.
Trait Implementations§
Source§impl Debug for JudgementError
impl Debug for JudgementError
Source§impl Display for JudgementError
impl Display for JudgementError
Source§impl Error for JudgementError
impl Error for JudgementError
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()