pub enum ScraperError {
FetchError(Error),
ParseError(SelectorErrorKind<'static>),
ScrapeError(String),
SerializeError(Error),
}
Expand description
Custom error type for handling errors in the Goodreads metadata scraper.
Variants§
FetchError(Error)
Error that occurs during the HTTP request to Goodreads, originating from reqwest
.
ParseError(SelectorErrorKind<'static>)
Error encountered while parsing the HTML document, originating from scraper
.
ScrapeError(String)
Non-recoverable error encountered while scraping the HTML document. Indicates expected content was missing.
SerializeError(Error)
Error encountered during JSON serialization, originating from serde_json
.
Trait Implementations§
Source§impl Debug for ScraperError
impl Debug for ScraperError
Source§impl From<Error> for ScraperError
impl From<Error> for ScraperError
Source§impl From<Error> for ScraperError
impl From<Error> for ScraperError
Source§impl From<SelectorErrorKind<'static>> for ScraperError
impl From<SelectorErrorKind<'static>> for ScraperError
Source§fn from(error: SelectorErrorKind<'static>) -> Self
fn from(error: SelectorErrorKind<'static>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScraperError
impl !RefUnwindSafe for ScraperError
impl !Send for ScraperError
impl !Sync for ScraperError
impl Unpin for ScraperError
impl !UnwindSafe for ScraperError
Blanket Implementations§
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