Hi,

I often found this pattern in my functions:

function doSomething(params){
  try {
       // Do Something
  } catch (e) {catchError ("doSomething", e, params) ;}
}

catchError() simply pretty-prints the error message to the console.

Is there a possibility to extend all user function definitions
automatically with this try/catch pattern? Or have I missed something
even more useful?

--noiv

Reply via email to