code: private void cleanupErrorFile(Watcher watcher) {
          File file = getErrorFileForWatcher(watcher);
          FileUtils.deleteQuietly(file);
      }
docs: Method called on each event before the processing, deleting the error file is this file exists.
  
  @param watcher the watcher