Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Events > OnInterviewError event
OnInterviewError event
The OnInterviewError event runs when an interview terminates due to a scripting error, and is typically used for custom error reporting such as sending an email message to an administrator. The interview object and the error message are passed to the event. To define actions to be carried out in this situation, place the following statements in the routing section of the script:
Sub OnInterviewError(IOM, ErrorMsg)
End Sub
ErrorMsg represents the error message.
statements are interview scripting or mrScriptBasic statements that define the actions to be carried out.
IOM is the interview object. This gives the event access to all the properties and objects related to the interview.
See also