« Return to Thread: Intercepting constructors that handle exceptions

Intercepting constructors that handle exceptions

by jonamep :: Rate this Message:

Reply to Author | View in Thread

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

_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

 « Return to Thread: Intercepting constructors that handle exceptions