Gumbo PHP Library API Documentation
Error
[
class tree
] [
index
] [
all elements
]
Todo List
Packages:
Buffer
Collection
Composite
Config
Converter
Curl
Date
DB
Debug
Encryption
Error
Factory
Filter
Flyweight
Http
Input
Iterator
List
Load
Lockable
Log
Map
Number
Observer
Output
Query
Record
Router
Session
Setting
Singleton
Template
Timer
Utility
Valid
Source for file Error.class.php
Documentation is available at
Error.class.php
<?php
/**
* Gumbo Library Framework
*
* LICENSE
* 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
*
*
@category
Gumbo
*
@package
Error
*
@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
*
@version
0.0.1
*/
/**
* 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.
*
*
@category
Gumbo
*
@package
Error
*
@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 Interface
*
@version
0.0.1
*/
interface
Gumbo_Interface_Error
{
/** ACTION METHODS **/
/**
* Adds an Exception to the list
*
@param
Exception
$e
*/
public
function
add
(
Exception
$e
)
;
/**
* Clears all the errors from the system
*
@param
int
$level
level to clear
*/
public
function
clear
(
$level
=
null
)
;
/** MUTATOR METHODS **/
/**
* Sets the minimum error reporting level (inclusive and above)
*
@param
int
$level
*/
public
function
setReportLevel
(
$level
)
;
/**
* Sets the ignore level (inclusive and below)
*
@param
int
$level
*/
public
function
setIgnoreLevel
(
$level
)
;
/** ACCESSOR METHODS **/
/**
* Returns all Errors
*
@param
int
$level
limit to supplied level and above
*
@param
bool
$only
limits to only errors at the supplied level
*
@return
Exception[]
*/
public
function
getAll
(
$level
=
null
,
$only
=
false
)
;
/**
* Returns if any Errors exist
*
@param
int
$level
if errors of this level exist
*
@return
bool
*/
public
function
exists
(
$level
=
null
)
;
/**
* 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.
*
*
@return
int
*/
public
function
level
(
)
;
/**
* Returns the number of errors
*
@param
int
$level
number of errors at level
*
@return
int
*/
public
function
count
(
$level
=
null
)
;
/**
* Returns the minimum reporting level
*
@return
int
*/
public
function
getReportLevel
(
)
;
/**
* Returns the minimum ignore level
*
@return
int
*/
public
function
getIgnoreLevel
(
)
;
}
?>