boolean hadException() {
            return exception != null;
        }
A {@link UncaughtExceptionHandler} that records whether the thread threw an exception.
slf4j-api/src/test/java/org/slf4j/helpers/MDCAdapterTestBase.java