Source for file Handler.class.php
Documentation is available at Handler.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* Error Handler Interface
* The Error Handler contains a static method for processing Exceptions
* triggered by the program. This method should be called when an Error
* occurs. It will process the Exception and send it to the Error class.
* The trigger method contains implementation for processing Exceptions and
* processing input from the trigger_error() call. This makes this class
* backwards compatible with PHP4. The Handler should be activated, which
* will register it's trigger() method as the exception and error handler.
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Error Handler Interface
* Catches an Error triggered by the program
* @param int|Exception$errno Error code (trigger_error), Exception object
* @param string $errstr Error message, Exception class name
* @param string $errfile location of Error occurence
* @param int $errline line number Error occured
* @param string $errfunc function or class::method where error occured
public static function trigger ($errno, $errstr=
null, $errfile=
null, $errline=
null, $errfunc=
null);
* Activates this class as the system Error Handler to the trigger method
* Restores the system Error Handlers
* @postcondition restore_error_handler ()
* @postcondition restore_exception_handler ()
public static function reset ();