AnewtException Class Reference

Base class for exceptions thrown by Anewt. More...

List of all members.

Public Member Functions

 __construct ($code, $fmt=null, $args=null)
 Create a new AnewtException.


Detailed Description

Base class for exceptions thrown by Anewt.

Definition at line 14 of file exception.lib.php.


Constructor & Destructor Documentation

AnewtException::__construct ( code,
fmt = null,
args = null 
)

Create a new AnewtException.

The $code parameter is optional (even though its the first parameter). If the first parameter is an integer, it is used as the Exception code. Otherwise, it is assumed to be a (format) string. The remaining arguments are treated just like the sprintf() does.

Examples:

Parameters:
$code Optional error code.
$fmt A error message, optionally with sprintf format specifiers
$args Zero or more values passed to vsprintf

Reimplemented in AnewtHTTPException.

Definition at line 37 of file exception.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:37 2009 for Anewt by  doxygen 1.5.9