Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] softening exceptions

It's ok - I just did:

declare soft: Exception+: within(Client) &&
!(call(FileInputStream.new(..)));

And it seems to work.

Eric Macaulay

----- Original Message -----
From: Eric Macaulay <eeoam@xxxxxxxxx>
To: <aspectj-dev@xxxxxxxxxxx>
Sent: Sunday, May 23, 2004 9:08 PM
Subject: Re: [aspectj-dev] softening exceptions


> No, the last pointcut dealing with FileInputStream vitiates the previous
> pointcuts and seems to want to force me to catch all exceptions.
>
> Eric Macaulay
>
> ----- Original Message -----
> From: Wes Isberg <wes@xxxxxxxxxxxxxx>
> To: <aspectj-dev@xxxxxxxxxxx>
> Sent: Saturday, May 22, 2004 4:09 PM
> Subject: Re: [aspectj-dev] softening exceptions
>
>
> > Just speculating - parentheses?:
> >
> > declare soft: Exception+ : within(Client)
> >      && (call(* *(..)) || call(new(..)))
> >      && !(call(FileInputStream+.new(..));
> >
> > Wes
> >
> > Eric Macaulay wrote:
> > > Hi There,
> > >
> > > I wish to soften all exceptions except the FileNotFoundException
thrown
> by the constructor of FileInputStream. I tried the following:
> > >
> > > declare soft: Exception+ : within(Client) && call(* Object+.*(..))
> > >   || call(Object+.new(..)) && !(call(FileInputStream.new(String));
> > >
> > > Unfortunately this seems to unsoften all exceptions. Can anyone help?
> > >
> > > Eric Macaulay
> > >
> > >
> >
> > _______________________________________________
> > aspectj-dev mailing list
> > aspectj-dev@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/aspectj-dev
> >
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-dev
>



Back to the top