[][src]Crate srcerr

User friendly errors from source data.

Modules

formatter

Formatters for source errors.

model

Data types representing the source error.

Structs

Expr

A value or section of the source data.

ExprHighlighted

Expression to highlight and an optional hint.

SourceError

Information about an error from source data.

SourceErrorFormatter

Formats a SourceError, delegating styling to the parameterized type.

SourceHighlighted

Relevant part of source data to highlight to the user.

SourceRefHint

Reference a different part of the source data as a hint.

Span

Start (inclusive) and end (exclusive) positions of a &str.

Enums

HighlightLevel

How a message should be highlighted.

Severity

Whether this is a denied error or warning.

Suggestion

Suggestions to provide to the user.

Traits

ErrorCode

Error codes of an application.

Styler

Provides styling and layout information when formatting an error.

Type Definitions

AnsiColorFormatter

Formats a SourceError with ANSI colors.

DefaultFormatter

Formats a SourceError with ANSI colors.

PlainTextFormatter

Formats a SourceError as plain text.