avoid fatal guzzle exception error how can i avoid fatal error due to ?

 |GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host|


My code here do not catch it 

try {
      $client = new Client();
      $response = $client-&gt;request('GET', $url);
      $content = json_decode($response-&gt;getBody(), true);     
    }
    catch (Exception $e) {
      \Drupal::logger('amu_hal')-&gt;error('this url aint good'.$url);
    }
This is an example on how to catch this error:

try {
     $client = new Client();
     $response = $client-&gt;request('GET', $url);
     $content = json_decode($response-&gt;getBody(), true);     
} catch (\GuzzleHttp\Exception\ConnectException $e) {
     var_dump($e);exit();
}