IgnoreEventDeliveryExceptionHandler implements EventDeliveryExceptionHandler { @Override public boolean handles(Throwable t) { return Arrays.stream(supportedThrowables).anyMatch(th -> th.isInstance(t)); }  @Override boolean handles(Throwable t); @Override EventDeliveryExceptionHandlerState makeState(Throwable t); @Override void handle(EventDeliveryExceptionHandlerState state, Throwable t, Runnable retry, Consumer<Throwable> fail, Runnable ignore); @SafeVarargs final IgnoreEventDeliveryExceptionHandler withExceptions(Class<? extends Throwable>... throwables);  }
@Test public void shouldHandle() { assertTrue(exceptionHandler.handles(new MyException2())); assertFalse(exceptionHandler.handles(new NullPointerException())); }