yr.exception.YRRuntimeError

yr.exception.YRRuntimeError#

exception yr.exception.YRRuntimeError(code=ErrorCode.ERR_INNER_SYSTEM_ERROR, module_code=ModuleCode.RUNTIME, message: str = '', error_info=None, cause=None, stack_trace_infos=None)#

结构化运行时错误。

YRRuntimeError 继承自 yr.exception.YRError 和 Python 内置 RuntimeError。用户可以继续使用 except RuntimeError 捕获该异常,也可以使用 except yr.YRRuntimeError 读取 codemodule_codemessageerror_info 等结构化字段。