title: How can I handle Doctrine errors?
body: <p>I am using Doctrine's <code>dbal</code> service in my Symfony2 app.</p>
  
  <p>I query a non-existent table, which throws an error:</p>
  
  <blockquote>
    <p>SQLSTATE[42S02]: Base table or view not found: 1146 Table 'log.requests_20130311' doesn't exist.</p>
  </blockquote>
  
  <p>Symfony2 catches this before I can, even in a <code>try-catch</code> block. I don't want this to kill my application. How can I handle it?</p>