code: def error(self, *args, **kwargs):
      super().error(*args, stacklevel=2, **kwargs)
      if FatalLogger.errors_fatal:
          raise RuntimeError("Error encountered")
  
file_path: pelican/pelican/log.py
imports: import logging
  from collections import defaultdict
  from rich.console import Console
  from rich.logging import RichHandler
label_desc: Use image node_id 2 for calling the FatalLogger obj's underlying member method code with example usage: obj.error() without return types