I thought about that, but then I'd have to put one into every function...
Can it go across all functions in a file, like this?
js code:
try
{
function Test1()
{
// invalid function
foo.bar();
}
function Test2()
{
Test1();
}
}
catch (error)
{
MsgPlus.DisplayToast("Error!", error.description);
}