code: public static void handleOrLog(Throwable t)
      {
          if (Thread.getDefaultUncaughtExceptionHandler() == null)
              logger.error("Error in ThreadPoolExecutor", t);
          else
              Thread.getDefaultUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), t);
      }
docs: Send @param t to the default uncaught exception handler, or log it if none such is set up