OzWebClient.onErrorOccured event

This event occurs if an error message has been received from Ozeki Phone System. When the error is occured, the function given as a parameter of the event will be called and that function will get the error message.

Callback method input parameters

errorMessage: Type: string. The content of the sent error message.

Event usage example

In this example we will register to the onErrorOccured event. If the Ozeki Phone System send us an error, then the errorOccured method will write it on the console(Code example 1).

//registers to the onErrorOccured event

function errorOccured(error)  {  
Code example 1 - OzWebClient.onErrorOccured event example

More information