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. More... | |
Static Public Member Functions | |
| static const IliErrorReporter * | GetDefault () |
| Returns the default error reporter. More... | |
| static void | GetMessage (IlvDisplay *display, const IliErrorMessage &msg, IliString &trans) |
| Returns a string which contains the translated error message. More... | |
| static void | SetDefault (const IliErrorReporter *reporter) |
| Sets the default error reporter. More... | |
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 |
Returns the default error reporter.
|
static |
Returns a string which contains the translated error message.
| display | The display. |
| msg | The error message. |
| trans | Contains the translated error message. |
|
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 |
Sets the default error reporter.
| reporter | The error reporter. |