[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] Re: aspects and threads
|
- From: Rachel Rapeli <leide_rachel@xxxxxxxxxxxx>
- Date: Sun, 27 Feb 2005 20:37:49 -0300 (ART)
- Delivered-to: aspectj-users@eclipse.org
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.