Error handling with Stack Trace in Servoy

Hi, does Servoy have an error handler which records the complete stack trace of all exceptions thrown in *.js files?

I just noticed that some exception, such as com.servoy.j2db.dataprocessing.DataException, does not have a stack trace. Just wanted to make sure that I am not reinventing the wheel in Servoy environment. I want to know the specific line number, file and stack trace of all errors.

you mean the script stack? or the java stack?
The java stack is what you should see in the servoy log files
the real rhino script stack we only show in the debug console of the developer.

jcompagner:
you mean the script stack? or the java stack?
The java stack is what you should see in the servoy log files
the real rhino script stack we only show in the debug console of the developer.

How do I get the Java stack and the script stack of the aforementioned exception through Servoy API? I’d like to access it through our Servoy application. Is this possible?

We do have an onError hook on the Solution
there you get all the exceptions. That you then can look at.

And i guess if it is a rhino/js exception you can ask for the script stack some more info is here:
http://forum.servoy.com/viewtopic.php?f … ace#p81164

jcompagner:
We do have an onError hook on the Solution
there you get all the exceptions. That you then can look at.

And i guess if it is a rhino/js exception you can ask for the script stack some more info is here:
http://forum.servoy.com/viewtopic.php?f … ace#p81164

Yup, we have been using the onError method to get the exception.

I just noticed that when I call getStackTrace(), some exception classes return null values. Your link answered my question. I will just wait for Servoy 6’s implementation of getStackTrace.

Thanks.