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
Details EXCEPTION_NO_ACTION = 'EXCEPTION_NO_ACTION'
Const - No action exception; controller exists, but action does not
Details EXCEPTION_NO_ROUTE = 'EXCEPTION_NO_ROUTE'
Const - No route exception; no routing was possible
Details EXCEPTION_OTHER = 'EXCEPTION_OTHER'
Const - Other Exception; exceptions thrown by application controllers
Detailsstring $_errorAction = 'error'Action to use for errors; defaults to 'error'
Detailsstring $_errorController = 'error'Controller to use for errors; defaults to 'error'
Detailsstring $_errorModule = ''Module to use for errors; defaults to default module in dispatcher
Detailsint $_exceptionCountAtFirstEncounter = '0'Exception count logged at first invocation of plugin
Detailsbool $_isInsideErrorHandlerLoop = 'false'Flag; are we already inside the error handler loop?
Details__construct(
Array $options
=
array
)
:
voidConstructor
Options may include: - module - controller - action
Details_handleError(
Zend_Controller_Request_Abstract $request
)
:
voidHandle errors and exceptions
If the 'noErrorHandler' front controller flag has been set, returns early.
DetailsgetErrorHandlerAction(
)
:
stringRetrieve the current error handler action
DetailsgetErrorHandlerController(
)
:
stringRetrieve the current error handler controller
DetailsgetErrorHandlerModule(
)
:
stringRetrieve the current error handler module
DetailspostDispatch(
Zend_Controller_Request_Abstract $request
)
:
Post dispatch hook -- check for exceptions and dispatch error handler if necessary
DetailsrouteShutdown(
Zend_Controller_Request_Abstract $request
)
:
Route shutdown hook -- Ccheck for router exceptions
DetailssetErrorHandler(
array $options
=
array
)
:
Zend_Controller_Plugin_ErrorHandlersetErrorHandler() - setup the error handling options
DetailssetErrorHandlerAction(
string $action
)
:
Zend_Controller_Plugin_ErrorHandlerSet the action name for the error handler
DetailssetErrorHandlerController(
string $controller
)
:
Zend_Controller_Plugin_ErrorHandlerSet the controller name for the error handler
DetailssetErrorHandlerModule(
string $module
)
:
Zend_Controller_Plugin_ErrorHandlerSet the module name for the error handler
Details