Create an error

def _create_err(self, errclass: str, *args) -> "Err":
        """
        Create an error
        """
        error = self._new_err(errclass, *args)
        self._add(error)
        return error