[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] doesn't a handler-pointcut 'return'?
|
- From: Hermann Voßeler <hermann.vosseler@xxxxxxxxxxxxx>
- Date: Tue, 19 Oct 2004 16:41:47 +0200
- Delivered-to: aspectj-users@eclipse.org
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803
Hi:
I experimented a bit with the handler-pointcut brought up
by Adreas Guther and Ron DoFrango yesterday.
I want to advice the situation where a handler has cought
an exception, handles it and returns normally without throwing
any further exceptions.
I tried the following:
pointcut errhandler(Throwable t)
: in_user_code()
&& handler(*)
&& args(t);
after(Throwable t) returning
: errhandler(t)
{
// do something
}
but this doesn't work due to a compiler limitaion
(compiler prints a warning). Does anyone know a
workaround?
--
Regards,
Hermann
---------------------------------------------------------------
Hermann Voßeler
Baader Wertpapierhandelsbank AG / IT
D-85716 Unterschleißheim
Internet: www.baaderbank.de
---------------------------------------------------------------