code: def _err(self, errclass: str="error", *args) -> "Err":
          
          error = self._new_err(errclass, *args)
          if self.log_errs is True:
              sep = " "
              if self.log_format == "csv":
                  sep = ","
              msg = str(datetime.now()) + sep + \
                  self._errmsg(error, msgformat=self.log_format)
              self.logger.error(msg)
          print(self._errmsg(error))
          self._add(error)
          return error
docs: Creates an error