Accessors for class IliErrorList

Properties

Methods

Description

The IliErrorList class manages a list of error messages. It is typically used as a parameter to the addErrorSink methods provided by various Rogue Wave Views Data Access classes (see IliErrorMessage, IliDataSource, and IliTableGadget).
IliErrorList()
Here is an example of using an IliErrorList object :
	var list = new IliErrorList();
	var ds = Application.EMP_PNL.EMP_DS;
	var i;
	ds.addErrorSink(list);
	// do some interesting work with ds
	// ...
	ds.removeErrorSink(list);
	for (i = 0; i < list.errorsCount; ++i) {
	    writeln(list.getErrorAt(i).prettyMessage);
	}

TypeNameDescriptionNotes
InterrorsCountContains the number of errors.read-only
VoidaddError(IliErrorMessage error)Adds the error message.
VoidappendErrorList(IliErrorList errorList)Appends all the errors found in the errorList parameter to the end of this error list.
IliErrorMessagegetErrorAt(Int index)Returns the error message object at position index, counting from 0 for the first error message.
VoidremoveAllErrors()Removes all errors from the error list.
Voidreport(IlvAbstractView view)Opens an error dialog box showing the errors contained in this error list. If there is more than one error, the dialog box will contain a spin-box that allows the user to move from error to error. If provided, the view parameter designates a view on top of which the dialog box will appear.