Expand description
Error types for the spider crate.
All fallible operations in scrapling-spider return Result<T>, which is an
alias for std::result::Result<T, SpiderError>. The SpiderError enum has a
variant for each subsystem (fetch, browser, session, checkpoint, robots.txt, and
configuration) so callers can pattern-match on the source of a failure and decide
how to handle it – for example, retrying on transient fetch errors while
immediately aborting on configuration mistakes.
Both scrapling_fetch::FetchError and scrapling_browser::BrowserError implement
Into<SpiderError>, so the ? operator works seamlessly when calling into those
crates from spider code.
Enums§
- Spider
Error - The central error type for everything that can go wrong during a crawl.
Type Aliases§
- Result
- A convenience alias so every function in this crate can write
Result<T>instead ofstd::result::Result<T, SpiderError>. This is re-exported from the crate root, so downstream code can usescrapling_spider::Resultdirectly.