# -*- coding: utf-8 -*-
"""
eater.errors
~~~~~~~~~~~~
A place for errors that are raised by Eater.
"""
__all__ = [
'EaterError',
'EaterTimeoutError',
'EaterConnectError',
'EaterUnexpectedError',
'EaterUnexpectedResponseError'
]
[docs]class EaterError(Exception):
"""
Base Eater error.
"""
[docs]class EaterTimeoutError(EaterError):
"""
Raised if something times out.
"""
[docs]class EaterConnectError(EaterError):
"""
Raised if there is a connection error.
"""
[docs]class EaterUnexpectedError(EaterError):
"""
Raised when something unexpected happens.
"""
[docs]class EaterUnexpectedResponseError(EaterUnexpectedError):
"""
Raised when a response from an API is unexpected.
"""