API reference
python:irx:irx.builder.protocols.ExceptionLoweringTypingBase._guard_runtime_condition
method _guard_runtime_condition
_guard_runtime_condition(node: astx.AST, condition: ir.Value, *, code: str, message: str, block_name: str, exception_role: str = 'RuntimeError') -> None
Source: packages/irx/src/irx/builder/protocols.py:287
Raise the requested builtin if a native condition fails.
Parameters
-
node — Type: astx.AST
-
condition — Type: ir.Value
-
code — Type: str
-
message — Type: str
-
block_name — Type: str
-
exception_role — Type: str