@Retention(value=CLASS)
@Target(value={METHOD,CONSTRUCTOR})
public @interface FFDCIgnore
The exception classes called out in the annotation must match the exception type declared on the catch block. The filtering is not based on the runtime type of the exception class but on the statically declared types in the code.
For example:
@FFDCIgnore({ InterruptedException.class, NameAlreadyBoundException.class }) public void doSomeWork() { try { Thread.sleep(900); context.bind("context/binding", "hello"); } catch (InterruptedException ie) { // Nothing to do. No need for FFDC. } catch (NameAlreadyBoundException nabe) { // I guess it's already in naming. No need for FFDC. } catch (Throwable t) { // Don't know what's going on here. I'd better get FFDC. } }will omit FFDC for the first two catch blocks but will add it to the third.
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?>[] |
value |