API reference
python:arxpy:arxpy.diagnostics.Diagnostic
class Diagnostic
Diagnostic(severity: DiagnosticSeverity, message: str, filename: str, line: int | None, column: int | None, code: str | None = None)
Source: packages/arxpy/src/arxpy/diagnostics.py:36
One structured diagnostic exposed by the ArxPy API.
Attributes
-
severity — Type: DiagnosticSeverity; The severity level of the diagnostic.
-
message — Type: str; The human-readable diagnostic message.
-
filename — Type: str; Source attribution, or "<string>" / "<unknown>".
-
line — Type: int | None; One-based source line, when known.
-
column — Type: int | None; One-based source column, when known.
-
code — Type: str | None; Stable diagnostic code, e.g. "S001", when known.
Methods
- __init__ — Initialize one structured diagnostic.