Error.ErrorType Property (Microsoft.Office.Interop.InfoPath)
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
There are three types of data validation errors that can occur in an InfoPath form:
SCHEMA_VALIDATION Data validation failed as a result of an XML Schema–defined constraint.
USER_SPECIFIED Data validation failed as a result of a custom scripting error using the Add method of the Errors collection.
The ErrorType property can be used to determine the type of data validation error that has occurred.