Public Member Functions | |
| __construct ($code, $fmt=null, $args=null) | |
| Create a new AnewtException. | |
Definition at line 14 of file exception.lib.php.
| 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:
throw new AnewtException('Error');throw new AnewtException('Error: s', $value);throw new AnewtException(123, 'Error: s (s)', $value1, $value2);
| $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.
1.5.9