Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ajdt-dev] AspectJ question

hello all,
sorry for hte partially OT question (it is aspectj related)
 
i have this problem.
 
i have an advice that should be executed AFTER methodX returns successfully. (easy so far)
the big problem that i have is that my advice does some computation which can
throws  an Exception, and if it does i want to propagate it to the user
 
i was not able to add a throw claus eto this construct
 
after(String s) returning: mypointcut(s)  {
 
    try {
         // do somoe computation
   } catch(MyExeption e) {
        // propagate it to the user
   }
}
 
anyone could help?
 
thanks in advance a nd regards
 marco
  

Back to the top