def METHOD_NAME(self, exception):
    if isinstance(exception, requests.exceptions.ReadTimeout):
        raise ReadTimeoutError(exception)
    elif isinstance(exception, requests.exceptions.ConnectTimeout):
        raise ConnectTimeoutError(exception)
    elif isinstance(exception, requests.exceptions.ConnectionError):
        raise ConnectionError(exception)
    elif isinstance(exception, requests.exceptions.HTTPError):
        raise InvalidResponseError(exception)
    elif isinstance(exception, requests.exceptions.Timeout):
        raise TimeoutError(exception)
    else:
        raise UnexpectedError(exception)