Base class for exceptions thrown by Anewt.
Base class for exceptions thrown by Anewt.
__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);$codeOptional error code.
$fmtA error message, optionally with sprintf format specifiers
$argsZero or more values passed to vsprintf