AnewtException class

Base class for exceptions thrown by Anewt.

Class Overview

Base class for exceptions thrown by Anewt.

Public Methods

__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