/** Defines a custom error page to be shown when an error or an exception occur. The page can be a PHP script, an HTML page or a plain-text file. The $aDebug array is available in the code of this page. You can check if DEBUG is defined and print the debug information if needed. The $aDebug array contains the following values: * type: either 'error' or 'exception' * name: name of the error/exception * message: message associated with it * trace: complete trace leading to the uncatched exception * file: the file where the error occurred * line: the line where the error occurred An error also has this value: * number: error's number @param $sPath The path to the new error page. */ public static function setErrorPage($sPath) { self::$sErrorPagePath = $sPath; }