Sage Modeling and Simulation Library

IModel..::..AddError Method

Adds an error to the model, and iterates over all of the error handlers, allowing each in turn to respond to the error. As soon as any errorHandler indicates that it has HANDLED the error (by returning true from 'HandleError'), the error is cleared, and further handlers are not called.

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)


bool AddError(
	IModelError theError


Type: Highpoint.Sage.SimCore..::..IModelError
The error that is to be added to the model's error list.

Return Value

True if the error was successfully added to the model, false if it was cleared by a handler.