Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Properties/Error: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:46:00 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/properties/Error.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].Error Property = | ||
This property returns an <span class="clsObject">Error</span> object containing the type of error and the data of the failed transaction. This property contains data whenever the <span class="clsEvent">OnDataError</span> event fires. | This property returns an <span class="clsObject">Error</span> object containing the type of error and the data of the failed transaction. This property contains data whenever the <span class="clsEvent">OnDataError</span> event fires. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 13: | Line 13: | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 20: | Line 20: | ||
</div> | </div> | ||
Property Value | === Property Value === | ||
An <span class="clsObject">Error</span> object containing the type of error and the data from the failed transaction. | An <span class="clsObject">Error</span> object containing the type of error and the data from the failed transaction. | ||
JavaScript Example | === JavaScript Example === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 45: | Line 45: | ||
} | } | ||
} | }</pre> | ||
</div> | </div> | ||
Remarks | === Remarks === | ||
This property contains data that should be inspected every time the <span class="clsEvent">OnDataError</span> event occurs. | This property contains data that should be inspected every time the <span class="clsEvent">OnDataError</span> event occurs. |
Latest revision as of 01:42, 13 August 2022
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.