def _make_excp(self, error, status):
        """
        Raise LiquidWebException.
        """
        exc_type = error.get('error_class')
        message = error.get('full_message')
        try:
            _type = EXCEPTIONS_FIELDS[exc_type]
            fields = _type.get('fields')
            extra = {}
        except __HOLE__:
            fields = []

        for field in fields:
            extra[field] = error.get(field)
        return APIException(exc_type, message, status, extra=extra)
dataset/ETHPy150Open apache/libcloud/libcloud/common/liquidweb.py/LiquidWebResponse._make_excp