Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to cut into ALL exceptions

Do you mean, how do you catch all exceptions?

have you tried the following:

pointcut allCalls():
    call(* *.*(..));

after () throwing: allCalls()
{...}

----- Original Message ----- 
From: "Jawanda, Ron (Bolton)" <rjawanda@xxxxxxxx>
To: <aspectj-users@xxxxxxxxxxx>
Sent: Friday, January 24, 2003 12:11 PM
Subject: [aspectj-users] How to cut into ALL exceptions


> how do you capture ALL errors.
> I have several packages with various method call types
> private
> public 
> private static
> etc
> etc
> They are all in different packages.
> In all the examples i see explicit pointcuts into specific packages.
> I tried call(public * *.*.*.*(..)||
>          call(private *(..))||
> etc
> etc
> Anyone know?
> Thanks
> Ron 
> rjawanda@xxxxxxxx
> 
> 
> 
> aspect PublicErrorLogging {
>    Log log = new Log();
> 
>    pointcut publicMethodCall(): call(public * com.xerox.*.*(..));
> 
>    after() throwing (Error e): publicMethodCall() { log.write(e); }
> }
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
> 


Back to the top