exceptions thrown from advice

Florin-Alexandru Bratu <[email protected]> Mon, 07 Apr 2008 11:20:04 +0200
Newsgroups gmane.comp.programming.aspect.general
Message-ID <[email protected]>
Hello everyone!

This is more of a general question regarding AOP. If I have defined an 
advice that throws an exception, where is that exception handled?

For instance: say that I have a method:

class S{
public void something() {
   // something
}
}

and that I have an advice that triggers whenever the method starts 
executing. The advice is

class Advice {
public void  doOnSomething() throws  SomeException  {
       throw new SomeException();
}
}

(suppose the advice is properly configured)

Now; if I do something like this:

class Main {
   public void other()
         // is this necessary?
        // throws SomeException
   {
          new S().something();
   }
}


My question is: The call new S().something(); triggers an exception in 
the method other() ?

Thank you,
Florin

_______________________________________________
discuss mailing list    -    [email protected]

To unsubscribe and change options, go to:
http://aosd.net/mailman/listinfo/discuss_aosd.net

Check out the AOSD.net Wiki: http://aosd.net/wiki