Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Catch with AspectJ

Hi

I'm starting with AspectJ and I have a lot of packages and in which them java classes. I want to do an aspect that capture every exceptions and do something like that:

logger.logp(Level.SEVERE, <class name>.class.getName(), "method name", e.getMessage());

Because every exceptions has a same kind of catch, lake that:
 
(…)
catch(<something>Exception e)
            {
                logger.logp(Level.SEVERE, <class name>.class.getName(), "method name", e.getMessage());
            }  

Can someone give me an idea?

thank you

fg_costa

Back to the top