Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Exception handling AspectJ
Exception handling AspectJ [message #25287] Tue, 26 August 2003 07:47
Eclipse UserFriend
Originally posted by: kobi_willy.yahoo.de

Hi

i just got a problem while i was trying to implement AspectJ Exception
handling. I have the following code that shall intercept the normal
try-catch implementation.

pointcut changePriceExc(): handler(NegativePriceException);

void around(): changePriceExc()
{
System.out.println("ASPECT: Exception Handler");
}

I am getting the Compiler Error:

"Only before advice is supported on handler join points"

My question now is, if there s a compiler version, that still allows this
kind of handler interception, or if anyone has a workaround to intercept
handlers in the way i want to in the code above?
I only had the idea to delete the catch construct in the application code
and work with the before advice. But thats not really acceptable.

Thanks so far
Previous Topic:AJDT installation problem
Next Topic:Exception handling AspectJ
Goto Forum:
  


Current Time: Sat Aug 18 10:14:30 GMT 2018

Powered by FUDForum. Page generated in 0.01741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top