Gumbo_Interface_Error
Error Interface
The Error Interface is responsible for holding a lit of all the Errors thrown by the program. This allows the program to have a central location for getting all the Errors that have occured.
The Report Level is the minimum level of Errors that will be reported. All Errors will be saved, however only the Errors at or above the Report Level will be displayed.
The Ignore Level is the maximum level of Errors that will be ignored. The idea is to have the Error handler ignore certain Errors thrown. Any Errors at or below the ignore level should be thrown out.
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
Clears all the errors from the system
Parameter(s):
- (int) $level :: level to clear
[ Top ]
Returns the number of errors
Parameter(s):
- (int) $level :: number of errors at level
[ Top ]
Returns if any Errors exist
Parameter(s):
- (int) $level :: if errors of this level exist
[ Top ]
Returns all Errors
Parameter(s):
- (int) $level :: limit to supplied level and above
- (bool) $only :: limits to only errors at the supplied level
[ Top ]
Returns the current error level value
The Error level will be a base 2 int representation of the available error level constants. This will allow the system to determine the level of errors triggered during program execution.
[ Top ]
Sets the ignore level (inclusive and below)
Parameter(s):
- (int) $level
[ Top ]