title: How do I forward errors generated in the Bootstrap to the ErrorController?
body: <p>I am using the default <code>ErrorController</code> that Zend Tool generated for me. The very first thing my <code>index.php</code> file does is to register an error handler that converts errors and warnings into exceptions: </p>
  
  <pre><code>function handleError($errno, $errstr, $errfile, $errline, array $errcontext) {
      // error was suppressed with the @-operator
      if (0 === error_reporting()) {
          return false;
      }
  
      throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
  }
  
  set_error_handler('handleError');
  </code></pre>
  
  <p>I also have this set up in <code>index.php</code>:</p>
  
  <pre><code>$front = Zend_Controller_Front::getInstance();
  $front-&gt;throwExceptions(false);
  </code></pre>
  
  <p>The problem is that it doesn't handle exceptions that come from the Bootstrap file. The exception fires, but the <code>ErrorController</code> doesn't pick it up. Execution of the page simply halts and no views are rendered.</p>
  
  <p>How can I route every exception and warning through the error controller (with the exception of syntax and fatal errors, of course)?</p>