Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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





Back to the top