Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Intercepting constructors that handle exceptions

Hi Folks,

I've made a pointcut that intercepts a constructor,:

pointcut Test(Bank uc, File f) : execution(public Bank.new(File)) && args(f) && this(uc);

the constructor handles an exception...but I don't know how to intercept it. I 've tried sorrounding proceed() whit try catch but it didn't run...

   
    void around(Object uc, File f) throws Exception : Test(uc,f) {
        ....
    }

so what goes inside around ?

Thanks!!

jp

Back to the top