Page 1 of 1

Exception stack

Posted: Fri Aug 07, 2009 1:12 pm
by ConvertFromOldNGs
by isNoDarkSide >> Mon, 1 Oct 2007 22:17:41 GMT

I have a heritage system where methods that arm exception handlers have been armed repeatedly (some historical attempt at code reuse), resulting in handlers passing back to the wrong handlers ... assumptions are made regarding transaction state, etc, resulting in further exceptions.

An assertion condition in the transaction layer could ensure that handlers are not over-armed in this way.

But how do I access the exception handler stack at runtime?

Re: Exception stack

Posted: Fri Aug 07, 2009 1:12 pm
by ConvertFromOldNGs
by dcooper@jade.co.nz >> Mon, 1 Oct 2007 22:28:28 GMT

There are no methods in JADE 6.1 to access the exception stack. However, JADE 6.2 (will be available on the web site by the end of the month) has a new Process::getExceptionHandlerStack method that will give you exactly what you're after.

Dean.