docs: def _log_exception(self, exception):
          """
          Logs an exception.
  
          :param Exception exception: The exception.
  
          :rtype: None
          """
          self._io.error(str(exception).strip().split(os.linesep))