Browse Source

ZF-8558: do not wrap application exceptions when re-throwing

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20244 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 years ago
parent
commit
e6395e8c59
1 changed files with 1 additions and 3 deletions
  1. 1 3
      library/Zend/Controller/Dispatcher/Standard.php

+ 1 - 3
library/Zend/Controller/Dispatcher/Standard.php

@@ -296,9 +296,7 @@ class Zend_Controller_Dispatcher_Standard extends Zend_Controller_Dispatcher_Abs
                     $curObLevel = ob_get_level();
                 } while ($curObLevel > $obLevel);
             }
-
-            require_once 'Zend/Controller/Exception.php';
-            throw new Zend_Controller_Exception($e->getMessage(), $e->getCode(), $e);
+            throw $e;
         }
 
         if (empty($disableOb)) {