[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] re-throwing exceptions in around
|
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Fri, 24 Jul 2009 09:54:44 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=RTRS4ei1DRLHEdPWVTEPYIMaXcw2spUI2m9soZ38ex0=; b=HbKk2TwKjgBwlpDKU8HlsOIN8hFmrA16z2XcLsTAv9HEL4i+ZGdn/fI2h1Pm7x/wEb OjRXqJ6SC4KZgUk4nyaFH3nE3XqvPT8Ynf10TpP2orQs3i/1bO0bViNRBzkr9bc3E7VA t0+vGu6dV5TohBnDEpq4TXbszYn1ya3GHjgcY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=wcoGtR5qa0b5e1dl+qYwXvvzLH+dT2Moc4SLMiS3UWE97NO+m2287rC62bc9UK0MNl cB3TG4oK4chz2HMkQ67pdokBq2E9V02aZGUZpWNYsPb7Wza8qKA4pJvN79Y3pT8nS+PK DXvq7yq1b4ZQzOBFB2lj2HJN24pXZ3qN7mgfM=
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
>