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

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