Package com.ibm.ws.ffdc.annotation
Annotation Type FFDCIgnore
-
@Retention(CLASS) @Target({METHOD,CONSTRUCTOR}) public @interface FFDCIgnore
Indicate which catch blocks should not be instrumented for FFDC. This annotation should be added to methods that contain catch blocks for exceptions that are part of the normal execution.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.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>[]
value
-