Source code for pi_weather.exceptions

"""Definition of custom exceptions"""


[docs] class PiWeatherException(Exception): """Base exception for all PiWeather exceptions""" ...
[docs] class SettingsNotImportedException(PiWeatherException): """Exception raised when settings could not be imported from disk.""" ...
[docs] class ConfigPathAlreadySetException(PiWeatherException): """Exception raised when trying to change the config path after it has already been locked in (either via a prior set_path() call or because the singleton has already been instantiated).""" ...