Class ALoggedError

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ALoggedError = class(ALoggedItem)

Description

This class represents a error that is logged. It is defined such that the counter it will increment upon being logged is the one specified by lgerCounterName – by default, a counter named errors.

It also changes the string representation of itself produced when its toString method is called, to include a prefix that indicates it is an error. This prefix is defined by lgerStringRepresentation.

Hierarchy

Overview

Methods

Public function init: boolean; override;
Public function toString: AnsiString; override;

Description

Methods

Public function init: boolean; override;

Initializer

Public function toString: AnsiString; override;

Construct and return a string representation of the item, suitable for printing to a text-based device, such as a console.

This method overrides the behavior inherited from ALoggedItem.toString so that a prefix is included with the message that indicates it is an error. This prefix is defined by lgerStringRepresentation.


Generated by PasDoc 0.13.0 on 2015-06-23 19:40:11