Exceptions¶
PyOWM uses custom exception classes. Here you can learn which classes are used and when such exceptions are cast by the library
Exceptions Hierarchy¶
Exception
|
|___PyOWMError
|
|___ConfigurationError
| |
| |__ConfigurationNotFoundError
| |__ConfigurationParseError
|
|___APIRequestError
| |
| |__BadGatewayError
| |__TimeoutError
| |__InvalidSSLCertificateError
|
|___APIResponseError
|
|__NotFoundError
|__UnauthorizedError
|__ParseAPIResponseError
Exception root causes¶
PyOWMErroris the base class. Never raised directlyConfigurationErrorparent class for configuration-related exceptions. Never raised directlyConfigurationNotFoundErrorraised when trying to load configuration from a non-existent fileConfigurationParseErrorraised when configuration can be loaded from the file but is in a wrong, unparsable formatAPIRequestErrorbase class for network/infrastructural issues when invoking OWM APIsBadGatewayErrorraised when upstream OWM API backends suffer communication issues.TimeoutErrorraised when calls to the API suffer timeout due to slow response times upstreamInvalidSSLCertificateErrorraised when it is impossible to verify the SSL certificates provided by the OWM APIsAPIResponseErrorbase class for non-ok API responses from OWM APIsNotFoundErrorraised when the user tries to access resources that do not exist on the OWM APIsUnauthorizedErrorraised when the user tries to access resources she is not authorized to access (eg. you need a paid API subscription)ParseAPIResponseErrorraised upon impossibility to parse the JSON payload of API responses