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

Search documentation

Type to search.