Skip to main content

Module report

Module report 

Source
Expand description

Unified error reporting IR for Eure.

This module provides a standardized ErrorReport structure that can represent errors from all Eure crates (parser, document, schema, etc.) and be rendered to multiple outputs (CLI via annotate-snippets, LSP Diagnostics).

Structs§

ErrorReport
A complete error report with location and structured content.
ErrorReports
A collection of error reports.
Origin
A location in source code with semantic context hints.
OriginHints
Semantic context hints that aid in navigation and understanding.

Enums§

AnnotationKind
Kind of annotation marker on a span.
Element
An element within an error report.
Severity
Severity level of an error report.

Traits§

IntoErrorReports
Trait for errors that can be converted to ErrorReports.

Functions§

error_reports_comparator
Error comparator for query-flow that compares ErrorReports by value.
format_error_report
Render an ErrorReport to a string using annotate-snippets.
format_error_reports
Render multiple ErrorReports to a string.
report_config_error
Convert a ConfigError to ErrorReports.
report_conversion_error
Convert a schema conversion error to an ErrorReport.
report_document_error
Convert a document construction error to an ErrorReport. Uses OriginMap for precise key span resolution when available.
report_from_eure_parse_error
Convert a FromEure ParseError to ErrorReports.
report_parse_error
Convert a parse error to ErrorReports.
report_schema_load_error
Convert an EureQueryError to an ErrorReport for schema loading failures.
report_schema_validation_errors
Convert schema validation errors to ErrorReports.