Error Class. More...
#include <ilviews/dataccess/error.h>
Public Member Functions | |
IliErrorList () | |
This constructor initializes an empty error list. | |
IliErrorList (const IliErrorList &) | |
This constructor copies an error list. | |
virtual void | addError (const IliErrorMessage &msg) |
Records the error message. More... | |
void | append (const IliErrorList &list) |
Appends all the errors recorded in an error list to the end of this error list. More... | |
const IliErrorMessage & | getErrorAt (IlInt pos) const |
Returns an error message. More... | |
IlInt | getErrorsCount () const |
Returns the count of recorded error messages. More... | |
IliErrorList & | operator= (const IliErrorList &list) |
Assigns an error list. More... | |
void | removeAllErrors () |
Removes all errors from the error list. | |
void | removeErrorAt (IlInt pos) |
Removes an error message. More... | |
Public Member Functions inherited from IliErrorSink | |
IliErrorSink () | |
This constructor initializes an error sink. | |
IliErrorSink (const IliErrorSink &) | |
This constructor copies an error sink. | |
IliErrorSink & | operator= (const IliErrorSink &sink) |
Assigns an error sink. More... | |
Error Class.
Library: dataccess
The IliErrorList
is a subclass of the IliErrorSink
class that keeps a record of all the error messages it catches. Member functions are provided to browse through the recorded error messages or alter them.
IliErrorMessage
, IliErrorReporter
, IliErrorSink
.Name | Type | Equivalent methods |
---|---|---|
errorsCount | Int | getErrorsCount() |
Name | Return type | Equivalent methods |
---|---|---|
addError(IliErrorMessage msg) | Void | addError(msg) |
appendErrorList(IliErrorList list) | Void | append(list) |
getErrorAt(Int index) | IliErrorMessage | getErrorAt(index) |
removeAllErrors() | Void | removeAllErrors() |
report(IlvAbstractView view) | Void | defaultErrorReporter.reportErrors(view) |
Here is an example of using an IliErrorList object :
|
virtual |
void IliErrorList::append | ( | const IliErrorList & | list | ) |
Appends all the errors recorded in an error list to the end of this error list.
list | The error list |
const IliErrorMessage& IliErrorList::getErrorAt | ( | IlInt | pos | ) | const |
Returns an error message.
pos | The message position (counting from 0 for the first message caught). |
IlInt IliErrorList::getErrorsCount | ( | ) | const |
Returns the count of recorded error messages.
IliErrorList& IliErrorList::operator= | ( | const IliErrorList & | list | ) |
Assigns an error list.
list | The error list. |
void IliErrorList::removeErrorAt | ( | IlInt | pos | ) |
Removes an error message.
pos | The error message position. |