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