Exceptions¶
All exceptions are available directly from mal_scraper.x
-
exception
mal_scraper.exceptions.
MalScraperError
[source]¶ Parent to all exceptions raised by this library.
-
exception
mal_scraper.exceptions.
ParseError
(message, tag=None)[source]¶ A component of the HTML could not be parsed/processed.
The tag is the “component” under consideration to help determine where the error comes from.
Parameters: - message (str) – Human readable string describing the problem.
- tag (str, optional) – Which part of the page does this pertain to.
Variables: - message (str) – Human readable string describing the problem.
- tag (str) – Which part of the page does this pertain to.
-
exception
mal_scraper.exceptions.
RequestError
(code, message)[source]¶ An error making the request.
Parameters: - code (RequestError.Code) – Error code
- message (str) – Human readable string describing the problem.
Variables: - code (RequestError.Code) – Error code
- message (str) – Human readable string describing the problem.