public boolean isFatal(Throwable err, Consumer<Exception> throwableConsumer) {
        if (validator.test(err)) {
            throwableConsumer.accept(throwableMapper.apply(err));
            return false;
        }

        if (chainedClassifier != null) {
            return chainedClassifier.isFatal(err, throwableConsumer);
        } else {
            return true;
        }
    }
@Test
    public void noExceptionIsThrownIfTheExceptionDoesNotMatchTheOneExpected() {
        AtomicReference<Exception> caughtException = new AtomicReference<>();
        try {
            System.out.print(nullReference.toString());
        } catch (Exception e) {
            ARITHMETIC_EXCEPTION_STRATEGY.isFatal(e, caughtException::set);
        }
        assertThat(caughtException.get()).isNull();
    }