- Contents
Interaction Scripter Developer's Guide
CallObject.errorHandler Callback
Definition
CallObject.errorHandler is invoked by when an internal error occurs in the call object. If you pass the name of a user-defined function to CallObject.errorHandler, the function will be called when this event occurs.
Compatibility
This callback is compatible with scripts for Scripter .NET Client or Interaction Connect.
Syntax
CallObject.errorHandler (FunctionName);
Input Parameter
- FunctionName
-
The name of the function to call when an error occurs.
Example
<script language="JavaScript">
window.onload = Init;
function Init() {
scripter.callObject.errorHandler = ErrorHandler;
}
function ErrorHandler(ErrorId, ErrorText) {
alert("Error occured.\n\nError Id: " + ErrorId + "\nError Text: " + ErrorText);
}
</script>