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.
Handle exceptions that bubble up based on missing controllers, actions, or application errors, and forward to an error handler.
EXCEPTION_NO_CONTROLLER = 'EXCEPTION_NO_CONTROLLER'
Const - No controller exception; controller does not exist
EXCEPTION_NO_ACTION = 'EXCEPTION_NO_ACTION'
Const - No action exception; controller exists, but action does not
EXCEPTION_NO_ROUTE = 'EXCEPTION_NO_ROUTE'
Const - No route exception; no routing was possible
EXCEPTION_OTHER = 'EXCEPTION_OTHER'
Const - Other Exception; exceptions thrown by application controllers
string $_errorAction = 'error'
Action to use for errors; defaults to 'error'
string $_errorController = 'error'
Controller to use for errors; defaults to 'error'
string $_errorModule = ''
Module to use for errors; defaults to default module in dispatcher
int $_exceptionCountAtFirstEncounter = '0'
Exception count logged at first invocation of plugin
bool $_isInsideErrorHandlerLoop = 'false'
Flag; are we already inside the error handler loop?
__construct(
Array $options
=
array
)
:
void
Constructor
Options may include: - module - controller - action
_handleError(
Zend_Controller_Request_Abstract $request
)
:
void
Handle errors and exceptions
If the 'noErrorHandler' front controller flag has been set, returns early.
getErrorHandlerAction(
)
:
string
Retrieve the current error handler action
getErrorHandlerController(
)
:
string
Retrieve the current error handler controller
getErrorHandlerModule(
)
:
string
Retrieve the current error handler module
postDispatch(
Zend_Controller_Request_Abstract $request
)
:
Post dispatch hook -- check for exceptions and dispatch error handler if necessary
routeShutdown(
Zend_Controller_Request_Abstract $request
)
:
Route shutdown hook -- Ccheck for router exceptions
setErrorHandler(
array $options
=
array
)
:
Zend_Controller_Plugin_ErrorHandler
setErrorHandler() - setup the error handling options
setErrorHandlerAction(
string $action
)
:
Zend_Controller_Plugin_ErrorHandler
Set the action name for the error handler
setErrorHandlerController(
string $controller
)
:
Zend_Controller_Plugin_ErrorHandler
Set the controller name for the error handler
setErrorHandlerModule(
string $module
)
:
Zend_Controller_Plugin_ErrorHandler
Set the module name for the error handler