Class Error.

Inherits Garbage

The Error class contains and outputs error messages.

In udoc, errors are reported by creating an Error object. Later, the static function Error::report() will sort the error messages such that the most interesting messages are reported first, limit the total number of reports, and output it all.

Error::Error( File * file, uint line, const String & text )

Constructs an Error report for file line, whose text is text. The message is reported immediately if file is bad (ie. File::valid() is false), and later if the file is OK.

The returned pointer may be discarded.

void Error::blather()

This private helper reports the error on stdout.

static void Error::report()

Reports all stored errors.

This web page based on source code belonging to Oryx Mail Systems GmbH. All rights reserved.