In this code, I try to run a select on a table that doesn\'t exists, getJobReference() returns NULL and I would love to catch this kind of error, and w
getJobReference()
NULL
I don't know this SDK very well, but did you check if you get an exception?
try { $insert = new Google_Service_Bigquery_Job($bq->jobs->insert(PROJECT_ID, $job)); } catch (Exception $e) //or probably better Google_Exception { print('Something went wrong'); }