code: public void error(Throwable exception)
      {
          if (logger.isLoggable(SEVERE)) {
              logger.log(SEVERE, exception.getMessage(), exception);
          }
      }
docs: Logs a message at ERROR level. The value of {@code exception.getMessage()} will be used as the log message.
  <p>
  Usage example:
  <pre>
  logger.error(e);
  </pre>
  
  @param exception an exception associated with the error being logged