Forum Discussion
Ryan_Moran
12 years agoValued Contributor
Yes I understand that. So you add your own handling. Which you would have to do regardless to avoid endless loops and such.
function main(){
try{
Log.Error('hi i am an expected error');
}
catch(e){
Log.Error('hi i am an error that was unexpected');
}
}
function onlogerror(s,g){
g.Locked = true;
dosomething(g);
}
function dosomething(g){
switch (g.str){
case 'hi i am an error':
main();
break;
case 'hi i am an error that was unexpected':
trysomethingelse();
break;
}
wshell.popup(g.str);
}
function trysomethingelse(){
//do something else
}