Exceptions
The following exceptions can be raised by the AirQuality client:
Exceptions of the library.
- exception czech_air_quality.exceptions.AirQualityError[source]
Bases:
ExceptionBase exception for the czech_air_quality library.
- exception czech_air_quality.exceptions.StationNotFoundError[source]
Bases:
AirQualityErrorRaised when a city or station cannot be found.
- exception czech_air_quality.exceptions.PollutantNotReportedError[source]
Bases:
AirQualityErrorRaised when the nearest station does not report data for the requested pollutant.
- exception czech_air_quality.exceptions.DataDownloadError[source]
Bases:
AirQualityErrorRaised when data cannot be downloaded or is invalid.
- exception czech_air_quality.exceptions.CacheError[source]
Bases:
AirQualityErrorRaised when there is an error related to caching data.