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:35
Declared as: python:irx:irx.builder.runtime.exceptions.reporting.ExceptionReport
Immutable typed report with chronological related diagnostics.
Attributes
-
role — Role.; Type: Literal['root', 'cause', 'context', 'cleanup']
-
code — Stable diagnostic identifier.; Type: str
-
type_name — Name of type.; Type: str
-
source — Source input to process.; Type: str
-
line — Source line coordinate.; Type: int
-
col — Source column coordinate.; Type: int
-
message — Diagnostic message.; Type: str
-
frames — Frames.; Type: tuple[ExceptionFrame, ...]
-
related — Related.; Type: tuple[ExceptionReport, ...]
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__ —