@staticmethod<EOL><INDENT>def error(code, message, **kwargs):<DEDENT>
assert code in Logger._error_code_to_exception<EOL>exc_type, domain = Logger._error_code_to_exception[code]<EOL>exc = exc_type(message, **kwargs)<EOL>Logger._log(code, exc.message, ERROR, domain)<EOL>raise exc<EOL>
Call this to raise an exception and have it stored in the journal