CIRCNetwork.onError Member
Syntax
object.onError(e);
Arguments
Argument | Summary |
---|---|
e |
Returns
Remarks
See Also
Source Code
function my_neterror (e)
{
var msg;
var type = MT_ERROR;
if (typeof e.errorCode != "undefined")
{
switch (e.errorCode)
{
case JSIRC_ERR_NO_SOCKET:
msg = MSG_ERR_NO_SOCKET;
break;
case JSIRC_ERR_EXHAUSTED:
// error already displayed in onDisconnect
break;
case JSIRC_ERR_OFFLINE:
msg = MSG_ERR_OFFLINE;
break;
case JSIRC_ERR_NO_SECURE:
msg = getMsg(MSG_ERR_NO_SECURE, this.unicodeName);
break;
case JSIRC_ERR_CANCELLED:
msg = MSG_ERR_CANCELLED;
type = MT_INFO;
break;
case JSIRC_ERR_PAC_LOADING:
msg = MSG_WARN_PAC_LOADING;
type = MT_WARN;
break;
}
}
else
{
msg = e.params[e.params.length - 1];
}
dispatch("sync-header");
updateTitle();
if (this.state == NET_OFFLINE)
{
this.busy = false;
updateProgress();
}
client.ident.removeNetwork(this);
if (msg)
this.display(msg, type);
if (e.errorCode == JSIRC_ERR_PAC_LOADING)
return;
if (this.deleteWhenDone)
this.dispatch("delete-view");
delete this.deleteWhenDone;
}