code: public void error(final String message) {
          messages.add(new LogMessage(message, LogMessage.Type.ERROR));
          log.error(message);
      }
docs: Write an error message to the logs
  
  @param message The error message