Re: [aspectwerkz-user] Throwing a checked Exception
"Michael Nascimento Santos" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.devel,gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Just found DefaultAdviceContainerStrategy is to blame in my case. It is the class wrapping checked exceptions. Is this really the intended behaviour? Or is it a bug? Regards, Michael ----- Original Message ----- From: "Michael Nascimento Santos" <[email protected]> To: <aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org> Sent: Saturday, February 14, 2004 1:51 AM Subject: Re: [aspectwerkz-user] Throwing a checked Exception > Hi folks, > > I managed to do it by implementing my own JoinPointController. However, I > don't like the way it's now since I had to give up using self-defined > aspects and now have to extend an AroundAdvice and do all the xml > configuration. > > Isn't there an easy way to achieve what I originally wanted? Do I really > have to implement my own JoinPointController (of course I extended > DefaultJoinPointController, but even so...)? Do I have to abandon model 2 > completely? > > []s > Michael > > ----- Original Message ----- > From: "Michael Nascimento Santos" <[email protected]> > To: <aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org> > Sent: Thursday, February 12, 2004 6:27 PM > Subject: [aspectwerkz-user] Throwing a checked Exception > > > > Hi guys, > > > > I've written an around advice that might decide to throw a checked > exception > > that is declared in the signature of the method being advised. However, > when > > it throws it, I get a WrappedRuntimeException in my code! I need to get > the > > original exception, provided it was part of the original method signature. > > How can I do that? This is crucial to what I am trying to do. > > > > Regards, > > Michael > > _______________________________________________ > > aspectwerkz-user mailing list > > aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org > > http://lists.codehaus.org/mailman/listinfo/aspectwerkz-user > > > _______________________________________________ > aspectwerkz-user mailing list > aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org > http://lists.codehaus.org/mailman/listinfo/aspectwerkz-user >