

def _raise_executing_exception_if_error(self, job):
    error_http = job.get('error')
    if error_http:
        raise JobExecutingException('Error in export job API request: {0}'.format(error_http))
    error_result = job.get('status').get('errorResult')
    if error_result:
        raise JobExecutingException('Reason:{reason}. Message:{message}'.format(**error_result))

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient._raise_executing_exception_if_error/original