Skip to main content

Module error

Module error 

Source
Expand description

Error types for the scrapling-browser crate.

Every fallible operation in this crate returns Result<T>, which is an alias for std::result::Result<T, BrowserError>. The BrowserError enum covers the major failure categories you can encounter during browser automation: Playwright driver errors, navigation failures, timeouts, page-pool capacity issues, configuration mistakes, and a catch-all Other variant.

Playwright driver errors are automatically converted via the From<playwright_rs::Error> implementation, so the ? operator works seamlessly in async code that calls into the underlying Playwright bindings.

Enums§

BrowserError
Errors that can occur during browser automation operations.

Type Aliases§

Result
Convenience alias used throughout the crate so that functions can return Result<T> without specifying the error type every time. Import this alias alongside BrowserError when writing code that calls into scrapling-browser.