code: @Override
      public void ioErrorRaised(IoErrorRaisedEvent event) throws InterruptedException {
          String message = "I/O error raised when polling directory '%s'!";
          PolledDirectory dir = event.getPolledDirectory();
          IOException e = event.getIoException();
          LOG.error(String.format(message, dir), e);
      }
docs: Logs any occurred I/O errors
  
  @throws InterruptedException when interrupted.