def _process_error(self, error, query_id): error_type = error['errorType'] if error_type == 'EXTERNAL': raise exceptions.PrestoExternalError(error, query_id) elif error_type == 'USER_ERROR': return exceptions.PrestoUserError(error, query_id) return exceptions.PrestoQueryError(error, query_id)
def _process_error(self, error, query_id): error_type = error["errorType"] if error_type == "EXTERNAL": raise exceptions.PrestoExternalError(error, query_id) elif error_type == "USER_ERROR": return exceptions.PrestoUserError(error, query_id) return exceptions.PrestoQueryError(error, query_id)