From 796029932b87e46d317262ab9562a5c091027dfc Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 20 Nov 2005 23:48:11 +0000 Subject: --- framework/Exceptions/TErrorHandler.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'framework/Exceptions/TErrorHandler.php') diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index e9ef1f33..779224ca 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -33,8 +33,8 @@ * The templates error.html and exception.html are default ones * that are used if no other appropriate templates are available. * Note, these templates are not Prado control templates. They are simply - * templates with keywords (e.g. %%ErrorMessage%%, %%Version%%) - * to be replaced with corresponding information. + * html files with keywords (e.g. %%ErrorMessage%%, %%Version%%) + * to be replaced with the corresponding information. * * By default, TErrorHandler is registered with {@link TApplication} as the * error handler module. It can be accessed via {@link TApplication::getErrorHandler()}. @@ -60,7 +60,7 @@ class TErrorHandler extends TComponent implements IModule */ const EXCEPTION_FILE_NAME='exception'; /** - * number of lines to be displayed in case of an exception + * number of lines before and after the error line to be displayed in case of an exception */ const SOURCE_LINES=12; @@ -106,6 +106,9 @@ class TErrorHandler extends TComponent implements IModule $this->_id=$value; } + /** + * @return string the directory containing error template files. + */ public function getErrorTemplatePath() { return $this->_templatePath; @@ -217,7 +220,7 @@ class TErrorHandler extends TComponent implements IModule { echo "Recursive Error\n"; echo "

Recursive Error

\n"; - echo "
".$exception."
\n"; + echo "
".$exception->__toString()."
\n"; echo ""; } else -- cgit v1.2.3