docs: def error(code, message, **kwargs):
          """Call this to raise an exception and have it stored in the journal"""
          assert code in Logger._error_code_to_exception
          exc_type, domain = Logger._error_code_to_exception[code]
          exc = exc_type(message, **kwargs)
          Logger._log(code, exc.message, ERROR, domain)
          raise exc