[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TErrorHandler class file
Author: | Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TErrorHandler.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 259 lignes (10 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TErrorHandler:: (7 méthodes):
init()
getErrorTemplatePath()
setErrorTemplatePath()
handleError()
handleExternalError()
handleRecursiveError()
displayException()
Classe: TErrorHandler - X-Ref
TErrorHandler classinit($config) X-Ref |
Initializes the module. This method is required by IModule and is invoked by application. param: TXmlElement module configuration |
getErrorTemplatePath() X-Ref |
return: string the directory containing error template files. |
setErrorTemplatePath($value) X-Ref |
Sets the path storing all error and exception template files. The path must be in namespace format, such as System.Exceptions (which is the default). param: string template path in namespace format |
handleError($sender,$param) X-Ref |
Handles PHP user errors and exceptions. This is the event handler responding to the <b>Error</b> event raised in {@link TApplication}. The method mainly uses appropriate template to display the error/exception. It terminates the application immediately after the error is displayed. param: mixed sender of the event param: mixed event parameter (if the event is raised by TApplication, it refers to the exception instance) |
handleExternalError($statusCode,$exception) X-Ref |
Displays error to the client user. THttpException and errors happened when the application is in <b>Debug</b> mode will be displayed to the client user. param: integer response status code param: Exception exception instance |
handleRecursiveError($exception) X-Ref |
Handles error occurs during error handling (called recursive error). THttpException and errors happened when the application is in <b>Debug</b> mode will be displayed to the client user. Error is displayed without using existing template to prevent further errors. param: Exception exception instance |
displayException($exception) X-Ref |
Displays exception information. Exceptions are displayed with rich context information, including the call stack and the context source code. This method is only invoked when application is in <b>Debug</b> mode. param: Exception exception instance |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |