@Test public void setExceptionsToTrace() { Tracer.ignoreClasses = null; Tracer.traceClasses = null; Tracer.setExceptionsToTrace(TraceException.class, TraceException2.class); Assert.assertTrue(Tracer.shouldTrace(new TraceException2())); Assert.assertTrue(Tracer.shouldTrace(new TraceExceptionSub())); Assert.assertFalse(Tracer.shouldTrace(new Exception())); }
@SafeVarargs public static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses) { checkNotNull(traceClasses); Tracer.traceClasses = traceClasses; }
Tracer { @SafeVarargs public static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses) { checkNotNull(traceClasses); Tracer.traceClasses = traceClasses; } }
Tracer { @SafeVarargs public static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses) { checkNotNull(traceClasses); Tracer.traceClasses = traceClasses; } protected  Tracer(); }
Tracer { @SafeVarargs public static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses) { checkNotNull(traceClasses); Tracer.traceClasses = traceClasses; } protected  Tracer(); static void trace(Throwable e); static void trace(Throwable e, int count); static void traceContext(Throwable e, int count, Context context); static void traceEntry(Throwable e, Entry entry); static void traceEntry(Throwable e, int count, Entry entry); @SafeVarargs static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses); static Class<? extends Throwable>[] getExceptionsToTrace(); @SafeVarargs static void setExceptionsToIgnore(Class<? extends Throwable>... ignoreClasses); static Class<? extends Throwable>[] getExceptionsToIgnore(); }
Tracer { @SafeVarargs public static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses) { checkNotNull(traceClasses); Tracer.traceClasses = traceClasses; } protected  Tracer(); static void trace(Throwable e); static void trace(Throwable e, int count); static void traceContext(Throwable e, int count, Context context); static void traceEntry(Throwable e, Entry entry); static void traceEntry(Throwable e, int count, Entry entry); @SafeVarargs static void setExceptionsToTrace(Class<? extends Throwable>... traceClasses); static Class<? extends Throwable>[] getExceptionsToTrace(); @SafeVarargs static void setExceptionsToIgnore(Class<? extends Throwable>... ignoreClasses); static Class<? extends Throwable>[] getExceptionsToIgnore();  }