Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Pointcust for Catching Exceptions

 
Hi:

I am stuck with the following problem and wonder if someone 
could point me to a solution:

I am working on writing pointcuts for logging exceptions.  What 
works fine is hitting methods which throw specific exceptions.
We have a lot of methods that handle Exceptions from lower level
layers and wrap them into higher level layer Exceptions. Before
those higher level exceptions are thrown I would like to log the
original exception, which takes place of course in the catch part.
 
Right now I have no idea how to define a pointcut that grabs the 
catch part.  I looked around and so far I could not find examples.

Any ideas how to solve that or where I could find examples?

Thanks in advance for any hint.

Regards,


Andreas 
 
--------------------------------------------------------
 
This electronic mail message contains information belonging to PaymentOne, which may be confidential and/or legal privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronically mailed information is strictly prohibited. If you receive this message in error, please immediately notify us by electronic mail and delete this message. 
--------------------------------------------------------
 
 
  


Back to the top