Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Properties/Error
Channel.Error Property
This property returns an Error object containing the type of error and the data of the failed transaction. This property contains data whenever the OnDataError event fires.
VBScript Syntax
external.Channel.Error
JavaScript Syntax
window.external.Channel.Error
Property Value
An Error object containing the type of error and the data from the failed transaction.
JavaScript Example
int giDataErrors = 0; function Channel_OnDataError() { // Error during SendData; retry up to three times, // five seconds between each retry, and then call it quits. // Any retries could lead to data being received out of order, // so check for this in your OnDataReceived. if (giDataError >= 3) { setGameOver(); } else { giDataErrors++; myData = window.external.Channel.Error.Data; window.setTimeout("SafeSendData(" + myData + ")",5000); } }
Remarks
This property contains data that should be inspected every time the OnDataError event occurs.