pub enum SeerError {
Show 24 variants
WhoisError(String),
WhoisServerNotFound(String),
WhoisConnectionFailed(String),
RdapError(String),
RdapBootstrapError(String),
DnsError(String),
DnsResolverError(NetError),
InvalidDomain(String),
DomainNotAllowed {
domain: String,
tld: String,
},
InvalidIpAddress(String),
InvalidRecordType(String),
HttpError(String),
ReqwestError(Error),
JsonError(Error),
Timeout(String),
RateLimited(String),
CertificateError(String),
SslError(String),
BulkOperationError {
context: String,
failures: Vec<(String, String)>,
},
LookupFailed {
domain: String,
details: String,
registry_url: String,
},
ConfigError(String),
InvalidInput(String),
Other(String),
RetryExhausted {
attempts: usize,
last_error: Box<SeerError>,
},
}Variants§
WhoisError(String)
WhoisServerNotFound(String)
WhoisConnectionFailed(String)
RdapError(String)
RdapBootstrapError(String)
DnsError(String)
DnsResolverError(NetError)
InvalidDomain(String)
DomainNotAllowed
InvalidIpAddress(String)
InvalidRecordType(String)
HttpError(String)
ReqwestError(Error)
JsonError(Error)
Timeout(String)
RateLimited(String)
CertificateError(String)
SslError(String)
BulkOperationError
LookupFailed
ConfigError(String)
InvalidInput(String)
Other(String)
RetryExhausted
Implementations§
Source§impl SeerError
impl SeerError
Sourcepub fn sanitized_message(&self) -> String
pub fn sanitized_message(&self) -> String
Returns a sanitized error message safe for external exposure (API responses, MCP tool results, Python exceptions).
Transport/network variants collapse to their CATEGORY with no inner
detail, so an upstream server hostname/URL, a resolver-config fragment,
a filesystem path, or a raw system error can never reach an external
consumer. Full detail is still available for internal logging via the
Display impl (to_string()) — log that, return this. User-input
echoes (invalid domain / IP / record type / not-allowed TLD / generic
input validation) are kept because they are the caller’s own input and
are needed to act on the error.
Trait Implementations§
Source§impl Error for SeerError
impl Error for SeerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SeerError
impl !UnwindSafe for SeerError
impl Freeze for SeerError
impl Send for SeerError
impl Sync for SeerError
impl Unpin for SeerError
impl UnsafeUnpin for SeerError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.