exceptions.py 472 B

12345678910111213141516171819202122
  1. """Exceptions"""
  2. class DateTagNotFoundError(Exception):
  3. """
  4. Raised when date for latest update cannot be found on FAO domain website
  5. """
  6. def __init__(
  7. self,
  8. url: str,
  9. ) -> None:
  10. """
  11. Initialise the error
  12. Parameters
  13. ----------
  14. url
  15. Link to download domain page
  16. """
  17. msg = f"Tag for date lat updated was not found on page with url {url}."
  18. super().__init__(msg)