Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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); }
}



Back to the top