title: CodeIgniter - how to catch DB errors?
body: <p>Is there a way to make <em>CI</em> throw an <em>exception</em> when it encounters a <em>DB error</em> instead of displaying a message like:</p>
  
  <blockquote>
    <p>A Database Error Occurred    Error Number: 1054
            Unknown column 'foo' in 'where clause'    SELECT * FROM (<code>FooBar</code>) WHERE <code>foo</code> = '1'</p>
  </blockquote>
  
  <p>NOTE: I only want this to happen in one controller. In the other controllers, I'm happy for it to display the <em>DB error messages</em>.</p>