Handling errors

Microsoft Office InfoPath

Show All Show All

Handling errors

When creating custom applications, developers must often perform error handling that involves writing programming code to check for errors raised by the application or to create and raise custom errors. The Microsoft Office InfoPath 2003 object model supports error handling through the use of the Error object in association with the Errors collection.

In InfoPath, errors can occur when a form's XML Schema is validated, when a custom validation constraint fails, when an error is generated by the ReportError method of the DataDOMEvent object, or when an error is created using the Add method of the Errors collection.

ShowOverview of the Errors collection

ShowOverview of the Error object

ShowUsing the Errors collection and the Error object