Exceptions

The following exceptions can be raised by the AirQuality client:

Exceptions of the library.

exception czech_air_quality.exceptions.AirQualityError[source]

Bases: Exception

Base exception for the czech_air_quality library.

exception czech_air_quality.exceptions.StationNotFoundError[source]

Bases: AirQualityError

Raised when a city or station cannot be found.

exception czech_air_quality.exceptions.PollutantNotReportedError[source]

Bases: AirQualityError

Raised when the nearest station does not report data for the requested pollutant.

exception czech_air_quality.exceptions.DataDownloadError[source]

Bases: AirQualityError

Raised when data cannot be downloaded or is invalid.

exception czech_air_quality.exceptions.CacheError[source]

Bases: AirQualityError

Raised when there is an error related to caching data.