docs: public static void handleException(Logger log, Throwable throwable,
              String methodName, Object... params) {
          if (params.length > 0)
              JMLog.errorForException(log, throwable, methodName, params);
          else
              JMLog.errorForException(log, throwable, methodName);
          increaseErrorCount();
          recordErrorMessageHistory(throwable);
      }