|Exception softening [message #596080]
||Thu, 29 March 2007 22:27
Registered: July 2009
I'm working on project(my diploma thesis) in which i would like to use as
many features as AspectJ and AJDT offers. I'm still learning, but so far,
i really like AspectJ and AJDT very much, it's really great for managing
cross-cutting concerns and i feel that i manage to implement more cleaner
and readable code and with better modularity.
The project is 3-tier app, which uses Java GUI, J2EE patterns, EJB, DAO
and such and postgreSQL DB.
I would like to ask about exception softening, because i'm using it for
example for softening SQLException, so that i'm handling it in aspect in
unified manner and it won't propagate further by throws clause or that i
don't have to write try and catch block in every DAO Operation.
When i declare softening like:
pointcut JavaSQLMethods() : call(* java.sql.*.*(..));
declare soft : SQLException : JavaSQLMethods();
When i run the app, then it does work as it should, i don't have to write
try, catch blocks or throws SQLException in every DAO Operation, but it
keeps showing errors in the editor part of IDE.....is it just my problem
or is it known issue?
Powered by FUDForum
. Page generated in 0.05738 seconds