QIEC diagnostics¶
QiecDiagnosticError is the error the Quivers Indexed Effect Core (QIEC) elaboration raises for a rejected source. It carries a
stable code and the
source location, which separate a source error from a construct that is valid but unavailable on
the requested path.
qiec_diagnostics
¶
The diagnostic the QIEC elaboration raises for a rejected source.
QiecDiagnosticError
¶
QiecDiagnosticError(message: str, *, code: str, file: str, line: int = 0, column: int = 0, program: str | None = None)
Bases: ValueError
A source-located, stable-code diagnostic from QIEC elaboration.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
What was rejected.
TYPE:
|
code
|
The stable diagnostic code.
TYPE:
|
file
|
The file the source was read from.
TYPE:
|
line
|
The one-based line, or zero when unknown.
TYPE:
|
column
|
The zero-based column.
TYPE:
|
program
|
The program whose elaboration raised the diagnostic, when it was
raised inside a program body;
TYPE:
|