Crate srcerr

Source
Expand description

Types to track error codes and details.

This library provies a SourceError struct that holds:

  • ErrorCode: Enum whose variants indicate error code, simple description.
  • ErrorDetail: Enum with matching variants to ErrorCode, but each variant contains information specific to an instance of the error.
  • Severity: The severity to report the error.

§Examples

Sample usage can be seen in the repository examples.

Re-exports§

pub use crate::model::ErrorCode;
pub use crate::model::ErrorDetail;
pub use crate::model::SourceError;
pub use codespan;
pub use codespan_reporting;

Modules§

fmt
Utility classes for formatting messages.
model
Data types representing the source error.