Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Error Class. More...
#include <ilviews/dataccess/errorrep.h>
Public Member Functions | |
IliErrorReporter () | |
The constructor initializes an error reporter. | |
virtual void | reportErrors (IlvDisplay *dpy, IlvAbstractView *anchor, const IliErrorList &list) const |
Displays the errors recorded in errorList , in a dialog box. | |
Static Public Member Functions | |
static const IliErrorReporter * | GetDefault () |
Returns the default error reporter. | |
static void | GetMessage (IlvDisplay *display, const IliErrorMessage &msg, IliString &trans) |
Returns a string which contains the translated error message. | |
static void | SetDefault (const IliErrorReporter *reporter) |
Sets the default error reporter. |
Error Class.
Library: dataccess
The IliErrorReporter
class is used by classes such as IliTableGadget
and IliDataSource
, to report error messages to the user. It is possible to customize the way errors are reported in the following way:
IliErrorReporter
. reportErrors
member function. The error messages are not translated. To get a translated message, you must use the GetMessage
function.
static const IliErrorReporter* IliErrorReporter::GetDefault | ( | ) | [static] |
Returns the default error reporter.
static void IliErrorReporter::GetMessage | ( | IlvDisplay * | display, | |
const IliErrorMessage & | msg, | |||
IliString & | trans | |||
) | [static] |
Returns a string which contains the translated error message.
display | The display. | |
msg | The error message. | |
trans | Contains the translated error message. |
virtual void IliErrorReporter::reportErrors | ( | IlvDisplay * | dpy, | |
IlvAbstractView * | anchor, | |||
const IliErrorList & | list | |||
) | const [virtual] |
Displays the errors recorded in errorList
, in a dialog box.
The error message are not translated. To get the translated message, you must use the getMessage
of the IlvDisplay
class.
dpy | The display. | |
anchor | The view. | |
list | The error list. |
static void IliErrorReporter::SetDefault | ( | const IliErrorReporter * | reporter | ) | [static] |
Sets the default error reporter.
reporter | The error reporter. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.