code: public static void setConfigException(Throwable e)
    {
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
  
      for (; loader != null; loader = loader.getParent()) {
        if (loader instanceof EnvironmentClassLoader) {
          EnvironmentClassLoader envLoader = (EnvironmentClassLoader) loader;
  
          envLoader.setConfigException(e);
  
          return;
        }
      }
    }
docs: Sets a configuration exception.