The Error Object

Individual Error objects are part of the Errors collection. Each Error object is associated with a node in the underlying XML DOM of a form template. When a validation error occurs on a DOM node, a corresponding Error object is created and added to the Errors collection.

There are three situations in which an Error object is created:

  • SCHEMA_VALIDATION— This error occurs when there is a failure of W3C XML Schema validation.

  • SYSTEM_GENERATED— Two situations produce this error. In the first, validation fails as a result of constraints contained in the manifest file, which are created by defining validation rules using the InfoPath user interface. In the second, scripting code calls the ReportError method of the DataDOMEvent object. ...

Get Microsoft® Office InfoPath™ 2003 Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.