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:254
Raise the requested builtin if a native condition fails.
Parameters
-
node — Syntax node to process.; Type: astx.AST
-
condition — Condition controlling the operation.; Type: ir.Value
-
code — Source code or diagnostic identifier.; Type: str
-
message — Diagnostic or output message.; Type: str
-
block_name — Name of block.; Type: str
-
exception_role — Exception role.; Type: str
Returns
Type: None