Re: [aspectj-users] Method return value in case of exception

2009-09-23 Thread Ramnivas Laddad
You need to keep track of the logged exception and make sure that you don't log it again. For an example, see source code of AspectJ in Action (specifically exception logging example in chapter 10); you can download code from http://manning.com/laddad2. -Ramnivas On Wed, Sep 23, 2009 at 2:59 AM, N

[aspectj-users] Method return value in case of exception

2009-09-23 Thread Nikolas Nehmer
Hi, currently I'm writing a tool logging method calls and corresponding return values (among other things). Using "after() throwing" capturing the result of a method in case of an exception is easily possible. Unfortunately (to capture the exception return value) AspectJ seems to inject try c