public boolean hasUnhandledException() {
    return hasUnhandledException;
  }
Sets the exception or throws an IllegalStateException if the context already contains an
exception that hasn't been retrieved via getException().
integ-tests/src/cucumberTest/java/cucumber/steps/helpers/ExceptionContext.java