DefaultFailureInterpreter implements FailureInterpreter { public boolean shouldTrip(Throwable cause) { for(Class<?> clazz : ignore) { if (clazz.isInstance(cause)) { return false; } } if (hasWindowConditions()) { counter.mark(); return (counter.tally() > limit); } return true; } DefaultFailureInterpreter();  DefaultFailureInterpreter(int limit, long windowMillis);  DefaultFailureInterpreter(Class<? extends Throwable>[] ignore);  DefaultFailureInterpreter(Class<? extends Throwable>[] ignore,
                                     int limit, long windowMillis); boolean shouldTrip(Throwable cause); Set<Class<? extends Throwable>> getIgnore(); synchronized void setIgnore(Class<? extends Throwable>[] ignore); int getLimit(); void setLimit(int limit); long getWindowMillis(); void setWindowMillis(long windowMillis);  }
@Test public void testAnyExceptionTripsByDefault() { assertTrue(impl.shouldTrip(new IOException())); }