pub enum BrowserError {
LaunchFailed {
reason: String,
},
CdpError {
operation: String,
message: String,
},
PoolExhausted {
active: usize,
max: usize,
},
Timeout {
operation: String,
duration_ms: u64,
},
NavigationFailed {
url: String,
reason: String,
},
ScriptExecutionFailed {
script: String,
reason: String,
},
ConnectionError {
url: String,
reason: String,
},
ConfigError(String),
ProxyUnavailable {
reason: String,
},
Io(Error),
StaleNode {
selector: String,
},
}Expand description
Errors that can occur during browser automation.
Every variant carries enough structured context to decide on a retry policy or surface a useful diagnostic message without string-parsing.
Variants§
LaunchFailed
Browser process failed to start.
CdpError
Chrome DevTools Protocol (CDP) operation failed.
Fields
PoolExhausted
All pool slots are occupied and the wait timeout elapsed.
Timeout
An operation exceeded its configured timeout.
Fields
Page navigation failed.
ScriptExecutionFailed
JavaScript evaluation failed.
ConnectionError
WebSocket / transport connection error.
ConfigError(String)
Invalid configuration value.
Proxy acquisition failed — no proxy is available or the circuit breaker is open.
Io(Error)
Underlying I/O error.
StaleNode
The RemoteObject reference has been invalidated — the page navigated
or the DOM node was removed since the NodeHandle
was created.
Trait Implementations§
Source§impl Debug for BrowserError
impl Debug for BrowserError
Source§impl Display for BrowserError
impl Display for BrowserError
Source§impl Error for BrowserError
impl Error for BrowserError
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()