API reference
python:irx:irx.builder.runtime.exceptions.ExceptionReport
class ExceptionReport
ExceptionReport(role: Literal['root', 'cause', 'context', 'cleanup'], code: str, type_name: str, source: str, line: int, col: int, message: str, frames: tuple[ExceptionFrame, ...] = (), related: tuple[ExceptionReport, ...] = ())
Source: packages/irx/src/irx/builder/runtime/exceptions/reporting.py:38
Declared as: python:irx:irx.builder.runtime.exceptions.reporting.ExceptionReport
Immutable typed report with chronological related diagnostics.
Attributes
-
role — Type: Literal[root, cause, context, cleanup]
-
code — Type: str
-
type_name — Type: str
-
source — Type: str
-
line — Type: int
-
col — Type: int
-
message — Type: str
-
frames — Type: tuple[ExceptionFrame, Ellipsis]
-
related — Type: tuple[ExceptionReport, Ellipsis]
Notes
type_name is a canonical nominal identity, not message-derived text. Unknown origins use line and col minus one; they are not fabricated. related holds cause, context, and secondary cleanup reports in order.
Methods
- __init__ —