Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » How to retrieve method name in a handle clause
How to retrieve method name in a handle clause [message #591616] Fri, 06 January 2006 10:42
Philippe Larouche is currently offline Philippe Larouche
Messages: 14
Registered: July 2009
Junior Member
Hi guys, I want to log some info in a file each time an exception is thrown
and one info that I'm interested in is the method's name where the exception
has been handled. The problem is that in an handle clause, I'm not able to
retrieve my method name. Here's how I defined the pointcut

pointcut logging(Exception exception) :
handler(!MyException) && args(exception);

I want to log everytime an exception (that is not a MyException instance) is
thrown.


Can someone help me please?? I tried to retrieve the info by the signature,
but it doesn't work.

Thanks,
Phil
Previous Topic:ajdt not executing advice when the aspect is included in a large project
Next Topic:Eclipse AspectJ Newbie Problem
Goto Forum:
  


Current Time: Wed Apr 16 16:01:11 EDT 2014

Powered by FUDForum. Page generated in 0.02564 seconds