Module errors

Source
Expand description

Utilities to implement diagnostics and error reporting facilities.

Structs§

DiagBuilder2
DiagnosticBuilder
Used to emit structured error messages.
Handler
A handler deals with errors.

Enums§

DiagSegment
Severity

Statics§

DUMMY_HANDLER

Traits§

DiagEmitter
Emits diagnostic messages.
EmitError
Emit errors as diagnostics.

Type Aliases§

DiagResult
A diagnostic result type. Either carries the result T in the Ok variant, or an assembled diagnostic in the Err variant.
DiagResult2
A diagnostic result type. Either carries the result T in the Ok variant, or an assembled diagnostic in the Err variant.