Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Generics - Exception
Generics - Exception [message #73157] Wed, 28 January 2009 09:49 Go to previous message
Hitalo is currently offline 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());
}
}

}
 
Read Message
Read Message
Read Message
Previous Topic:Generics - Exception
Next Topic:using Ajeer for RCP based on eclipse 3.2.3
Goto Forum:
  


Current Time: Tue May 21 23:11:20 EDT 2013

Powered by FUDForum. Page generated in 0.01537 seconds