title: Why does "no route found" have an uncaught exception in Silex?
body: <p>My site is logging uncaught exceptions when users try routes that don't exist. The log looks like this:</p>
  
  <pre><code>[2013-05-30 15:47:38] myapp.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /a/made/up/url" (uncaught exception) at /home/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 92 [] []
  </code></pre>
  
  <p>Is this normal? Or is there some way that I should be catching the exception?</p>
  
  <p>My error handling code looks like this:</p>
  
  <pre><code>$app-&gt;error(function (\Exception $e, $code) use ($app) {
  
      $app['monolog']-&gt;addDebug($e);
  
      // Some app-specific code
      $globals = $app['select_globals']();
  
      switch ($code) {
          case 404:
              return $app['twig']-&gt;render('404.phtml', array('globals' =&gt; $globals));
              break;
          default:
              return $app['twig']-&gt;render('error.phtml', array('globals' =&gt; $globals));
      }
  
  });
  </code></pre>