Re: [Neo] Transaction/Exception question

2010-02-24 Thread Mattias Persson
Even though the catch-clause throws an exception the finally-block will be run as usual just as if there'd be no catch-clause at all. What your code is missing is a tx.success() after doSomething(). Also this code doesn't need the tx.failure() call (since throwing the exception will make the

Re: [Neo] Transaction/Exception question

2010-02-24 Thread Mattias Persson
2010/2/24 Rick Bullotta rick.bullo...@burningskysoftware.com: Doh!  I told you I wasn't sleeping enough... Thanks.  Total brain fart on my end regarding the finally clause always being executed (how long have I been coding in Java?) Haha, yeah... well we all forget stuff sometimes :) Just to

[Neo] Transaction/Exception question

2010-02-23 Thread Rick Bullotta
If an exception cause a block of code to exit prior to a transaction being finish()ed, will it be implicitly finished in garbage collection? Here's the situation I want to try to implement : I would like to propagate the exception thrown by doSomething() to the caller of myFunc(), but also