title: zend framework 2 how catching exceptions?
body: <p>How I can catch exception in zend framework 2 using the PHP base Exception?</p>
  
  <p>If  line is uncommented then Exception class not found and exception is uncatched.</p>
  
  <p>If  line is commented the namespace is null and PHP base Exception class is founded.</p>
  
  <p>I can't uncommented this line because is required by zend in many places, i.g. ActionController.</p>
  
  <p>How do it?<br>
  Have I to use only Zend Exceptions? 
  which I have to use and what is the more generic zend Exception class?</p>
  
  <pre><code>    &lt;?php namespace SecureDraw; ?&gt; //  &lt;&lt;----- If remove this line catch work ok!!
      &lt;?php echo $this-&gt;doctype(); ?&gt;
      &lt;?php
          use Zend\Db\Adapter\Adapter as DbAdapter;
  
          try{
              $dbAdapter = new DbAdapter(array(  
                  'driver' =&gt; 'Pdo_Mysql',
                  'database' =&gt; 'securedraw',
                  'username' =&gt; 'root',
                  'password' =&gt; '',
              ));         
              $sql = "select * from tablenotexist";
              $statement = $dbAdapter-&gt;createStatement($sql);
              $sqlResult = $statement-&gt;execute();
          }
          catch(Exception $e){
              echo "hello";
          }
      ?&gt;
  </code></pre>