Controller/Plugin/ErrorHandler.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Subpackage
- Plugins
\Zend_Controller_Plugin_ErrorHandler
Package: Zend\Controller\PluginsHandle exceptions that bubble up based on missing controllers, actions, or
application errors, and forward to an error handler.
- Parent(s)
- \Zend_Controller_Plugin_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_Controller_Plugin_Abstract
- Version
- $Id: ErrorHandler.php 24593 2012-01-05 20:35:02Z matthew $
Constants
Properties



string $_errorAction = 'error'Action to use for errors; defaults to 'error'
Default value'error'Details- Type
- string



string $_errorController = 'error'Controller to use for errors; defaults to 'error'
Default value'error'Details- Type
- string



int $_exceptionCountAtFirstEncounter = 0Exception count logged at first invocation of plugin
Default value0Details- Type
- int



bool $_isInsideErrorHandlerLoop = falseFlag; are we already inside the error handler loop?
Default valuefalseDetails- Type
- bool
Methods



_handleError(\Zend_Controller_Request_Abstract $request) : voidHandle errors and exceptions
If the 'noErrorHandler' front controller flag has been set,
returns early.
Parameters


postDispatch(\Zend_Controller_Request_Abstract $request) : voidPost dispatch hook -- check for exceptions and dispatch error handler if
necessary
This callback allows for proxy or filter behavior. By altering the
request and resetting its dispatched flag (via
setDispatched(false)),
a new action may be specified for dispatching.
Parameters


preDispatch(\Zend_Controller_Request_Abstract $request) : voidPre dispatch hook -- check for exceptions and dispatch error handler if
necessary
This callback allows for proxy or filter behavior. By altering the
request and resetting its dispatched flag (via
setDispatched(false)),
the current action may be skipped.
Parameters


routeShutdown(\Zend_Controller_Request_Abstract $request) : voidRoute shutdown hook -- Ccheck for router exceptions
Called after Zend_Controller_Front exits from the router.
Parameters


setErrorHandler(array $options = array()) : \Zend_Controller_Plugin_ErrorHandlersetErrorHandler() - setup the error handling options
Parameters| Name | Type | Description |
|---|
| $options | array | |
|---|
Returns 


setErrorHandlerController(string $controller) : \Zend_Controller_Plugin_ErrorHandlerSet the controller name for the error handler
Parameters| Name | Type | Description |
|---|
| $controller | string | |
|---|
Returns