Gumbo_Interface_Error_Handler
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.
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 0.0.1 |
Interface Methods
public static void activate ( )
[line 58]
Activates this class as the system Error Handler to the trigger method
[ Top ]
public static void reset ( )
[line 65]
Restores the system Error Handlers
- postcondition:
restore_error_handler () - postcondition:
restore_exception_handler ()
[ Top ]public static void trigger ( int|Exception $errno, [string $errstr], [string $errfile], [int $errline], [string $errfunc] ) [line 51]Catches an Error triggered by the program
Parameter(s):
- (int|Exception) $errno :: Error code (trigger_error), Exception object
- (string) $errstr :: Error message, Exception class name
- (string) $errfile :: location of Error occurence
- (int) $errline :: line number Error occured
- (string) $errfunc :: function or class::method where error occured
[ Top ]