[docs]class MeetupBaseException(Exception):
"""
All Meetup exceptions inherit from this exception.
"""
[docs]class ClientException(MeetupBaseException):
"""
Meetup Client Exception base class.
"""
[docs]class ApiKeyError(ClientException):
"""
There is a problem with the client API key.
"""
[docs]class ApiMethodError(ClientException):
"""
The called API method is not defined or does not exist.
"""
[docs]class ApiParameterError(ClientException):
"""
The called API method is missing a required parameter.
"""
[docs]class HttpMethodError(ClientException):
"""
The requested HTTP Method is not valid.
"""
[docs]class MeetupHttpBaseException(MeetupBaseException):
"""
All Meetup HTTP Exceptions inherit from this exception.
"""
[docs]class HttpClientError(MeetupHttpBaseException):
"""
Called when the server tells us there was a client error (4xx).
"""
[docs]class HttpUnauthorized(HttpClientError):
"""
Called when the server sends a 401 error (when you don't provide a valid key)
"""
[docs]class HttpNotFoundError(HttpClientError):
"""
Called when the server sends a 404 error.
"""
[docs]class HttpTooManyRequests(HttpClientError):
"""
Called when the server sends a 429 error (when you've gone over your request rate limit)
"""
[docs]class HttpServerError(MeetupHttpBaseException):
"""
Called when the server tells us there was a server error (5xx).
"""