#[non_exhaustive]pub enum Error {
Io(Error),
Json(Error),
InvalidUsername {
input: String,
reason: String,
},
InvalidSite {
reason: String,
},
HttpSetup {
message: String,
},
BrowserSetup {
message: String,
},
}Expand description
Errors produced by the Adler engine.
New variants are added as subsystems land. The enum is
#[non_exhaustive] so growth is not a breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(Error)
I/O error while reading or writing local data (sites file, cache, etc.).
Json(Error)
Failed to (de)serialize JSON — typically a site-definitions file.
InvalidUsername
The supplied string is not a valid username.
The original input is preserved so callers can echo it back to the user without re-deriving it from the error message.
Fields
InvalidSite
A loaded site definition failed validation (bad template, empty marker, …).
HttpSetup
Building the HTTP client failed (TLS init, bad config, …).
Per-request errors do not surface here — they become
MatchKind::Uncertain so a single
flaky site can’t abort a full run.
BrowserSetup
Constructing a browser backend failed (no local Chrome, bad
Browserbase credentials, etc.). Per-fetch browser failures become
MatchKind::Uncertain — only setup
surfaces here.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()