equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Controller |
16 * @package Zend_Controller |
17 * @subpackage Plugins |
17 * @subpackage Plugins |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 */ |
20 */ |
21 |
21 |
22 /** Zend_Controller_Plugin_Abstract */ |
22 /** Zend_Controller_Plugin_Abstract */ |
23 require_once 'Zend/Controller/Plugin/Abstract.php'; |
23 require_once 'Zend/Controller/Plugin/Abstract.php'; |
28 * |
28 * |
29 * @uses Zend_Controller_Plugin_Abstract |
29 * @uses Zend_Controller_Plugin_Abstract |
30 * @category Zend |
30 * @category Zend |
31 * @package Zend_Controller |
31 * @package Zend_Controller |
32 * @subpackage Plugins |
32 * @subpackage Plugins |
33 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
34 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 * @license http://framework.zend.com/license/new-bsd New BSD License |
35 * @version $Id: ErrorHandler.php 20246 2010-01-12 21:36:08Z dasprid $ |
35 * @version $Id: ErrorHandler.php 24593 2012-01-05 20:35:02Z matthew $ |
36 */ |
36 */ |
37 class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract |
37 class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract |
38 { |
38 { |
39 /** |
39 /** |
40 * Const - No controller exception; controller does not exist |
40 * Const - No controller exception; controller does not exist |
191 return $this->_errorAction; |
191 return $this->_errorAction; |
192 } |
192 } |
193 |
193 |
194 /** |
194 /** |
195 * Route shutdown hook -- Ccheck for router exceptions |
195 * Route shutdown hook -- Ccheck for router exceptions |
196 * |
196 * |
197 * @param Zend_Controller_Request_Abstract $request |
197 * @param Zend_Controller_Request_Abstract $request |
198 */ |
198 */ |
199 public function routeShutdown(Zend_Controller_Request_Abstract $request) |
199 public function routeShutdown(Zend_Controller_Request_Abstract $request) |
200 { |
200 { |
201 $this->_handleError($request); |
201 $this->_handleError($request); |
202 } |
202 } |
203 |
203 |
|
204 /** |
|
205 * Pre dispatch hook -- check for exceptions and dispatch error handler if |
|
206 * necessary |
|
207 * |
|
208 * @param Zend_Controller_Request_Abstract $request |
|
209 */ |
|
210 public function preDispatch(Zend_Controller_Request_Abstract $request) |
|
211 { |
|
212 $this->_handleError($request); |
|
213 } |
|
214 |
204 /** |
215 /** |
205 * Post dispatch hook -- check for exceptions and dispatch error handler if |
216 * Post dispatch hook -- check for exceptions and dispatch error handler if |
206 * necessary |
217 * necessary |
207 * |
218 * |
208 * @param Zend_Controller_Request_Abstract $request |
219 * @param Zend_Controller_Request_Abstract $request |