Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] re-throwing exceptions in around

around advice is allowed to throw any unchecked exception that it wants.

void around() throws RuntimeException : execution(* Of.something()) {

}

Around can (must) throw a checked exception if all the advised
joinpoints also throw that exception.

On Fri, Jul 24, 2009 at 6:22 AM, Wade Girard<wade.girard@xxxxxxxxx> wrote:
> How do I define (around) advice so that I can throw an exception?
>
>
>
> Wade Girard
> wade.girard@xxxxxxxxx
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top