| Generics - Exception [message #599603] |
Wed, 28 January 2009 09:49 |
Hitalo Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Good morning!
I wonder if this is possible?
And if you have any way of doing?
Use "Generics" for exception and the "catch" exception get past ...
public abstract privileged aspect AbstractAspect<C extends Exception> {
abstract pointcut point();
declare soft: C : point();
void around() : point() {
try {
return proceed();
} catch (C e) {
System.out.println(e.getMessage());
}
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02968 seconds