def METHOD_NAME(self, response):
    # type: (requests.Response) -> None
    try:
        response.raise_for_status()
    except Exception as exc:
        message = 'Error response from VoltDB: {}'.format(exc)
        try:
            # Try including detailed error message from response.
            details = response.json()['statusstring']
        except Exception:
            pass
        else:
            message += ' (details: {})'.format(details)
        raise_from(Exception(message), exc)