|
|
@@ -237,7 +237,7 @@ class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
|
|
|
$plugin->routeStartup($request);
|
|
|
} catch (Exception $e) {
|
|
|
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
|
|
|
- throw $e;
|
|
|
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
|
|
|
} else {
|
|
|
$this->getResponse()->setException($e);
|
|
|
}
|
|
|
@@ -260,7 +260,7 @@ class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
|
|
|
$plugin->routeShutdown($request);
|
|
|
} catch (Exception $e) {
|
|
|
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
|
|
|
- throw $e;
|
|
|
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
|
|
|
} else {
|
|
|
$this->getResponse()->setException($e);
|
|
|
}
|
|
|
@@ -287,7 +287,7 @@ class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
|
|
|
$plugin->dispatchLoopStartup($request);
|
|
|
} catch (Exception $e) {
|
|
|
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
|
|
|
- throw $e;
|
|
|
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
|
|
|
} else {
|
|
|
$this->getResponse()->setException($e);
|
|
|
}
|
|
|
@@ -309,9 +309,11 @@ class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
|
|
|
$plugin->preDispatch($request);
|
|
|
} catch (Exception $e) {
|
|
|
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
|
|
|
- throw $e;
|
|
|
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
|
|
|
} else {
|
|
|
$this->getResponse()->setException($e);
|
|
|
+ // skip rendering of normal dispatch give the error handler a try
|
|
|
+ $this->getRequest()->setDispatched(false);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -331,7 +333,7 @@ class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
|
|
|
$plugin->postDispatch($request);
|
|
|
} catch (Exception $e) {
|
|
|
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
|
|
|
- throw $e;
|
|
|
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
|
|
|
} else {
|
|
|
$this->getResponse()->setException($e);
|
|
|
}
|
|
|
@@ -353,7 +355,7 @@ class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
|
|
|
$plugin->dispatchLoopShutdown();
|
|
|
} catch (Exception $e) {
|
|
|
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
|
|
|
- throw $e;
|
|
|
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
|
|
|
} else {
|
|
|
$this->getResponse()->setException($e);
|
|
|
}
|