title: Why can't I catch the ServiceException on the Azure PHP sdk?
body: <p>I'm trying to find out whether a blob exists or not. When the blob does not exist, my <code>try-catch</code> with Azure's <code>ServiceException</code> isn't being caught at all. I tried following the steps from <a href="https://stackoverflow.com/questions/37297646/check-if-blob-exists-in-azure">here</a>.</p>
  
  <pre><code>public function checkBlobExists($path) {
  
      $container = config('azure.storage.container');
      $blobClient = ServicesBuilder::getInstance()-&gt;createBlobService(config('azure.storage.connection_string'));
  
      try {
  
          $blob = $blobClient-&gt;getBlob($container, $path); 
          return true;
  
      } catch (ServiceException $e) {
          return false;
      }
  
      return false;
  }
  </code></pre>
  
  <p>This is some of the error stack:</p>
  
  <pre><code>ServiceException in ServiceRestProxy.php line 491:
  Fail:
  Code: 404
  Value: The specified blob does not exist.
  details (if any): .
  in ServiceRestProxy.php line 491
  at ServiceRestProxy::throwIfError(object(Response), array('200', '206')) in ServiceRestProxy.php line 409
  at ServiceRestProxy-&gt;MicrosoftAzure\Storage\Common\Internal\{closure}(object(ClientException)) in Promise.php line 203
  </code></pre>