Module diagnostic

Source
Expand description

Error reporting data structures and miette integration.

Structs§

Label
A label for a span within a json pointer or malformed string.
Report
An enriched error wrapper which captures the original error and the subject (String or PointerBuf) which caused it, for reporting purposes.

Traits§

Diagnose
An extension trait for Result<_, E>, where E is an implementation of Diagnostic, that converts E into Report<E>, yielding Result<_, Report<E>>.
Diagnostic
Implemented by errors which can be converted into a Report.