Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: aspects and threads

Hello,
Yes, as you sad, I'm using a declare soft declaration too.  Now I'm
sending whole the aspect. The SoftException is thrown after the message ("Members.java").
------------------------
public aspect AspectSQLException {
     pointcut PntSQLException() : execution(* Members.connection(..));
     declare soft : SQLException : PntSQLException();
     after() throwing(SQLException SQLe) : PntSQLException() {
          try {
                throw new SQLException();
          } catch (SQLException e1) {
             if(thisJoinPoint.toString().indexOf("Members.connection") != -1)
                System.out.println("Members.java" + e1.toStirng());
         }
     }
}
Rachel
---------------------------------------------
MSc Candidate in Computer Science
UFSCar - Federal University of São Carlos
Brazil
---------------------------------------------


Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.

Back to the top