error-context

Crates.ioerror-context
lib.rserror-context
version0.1.2
sourcesrc
created_at2019-02-18 16:18:59.688257
updated_at2019-08-27 15:54:35.139375
descriptionMethods and types that help with adding additional context information to error types
homepage
repositoryhttps://github.com/jpastuszek/error-context
max_upload_size
id115592
size19,642
Jakub Pastuszek (jpastuszek)

documentation

https://docs.rs/error-context

README

Latest Version Documentation License

Aim of this library is to provide convenient way of adding statically typed context information to errors in Rust.

This crate provides two ways of adding context:

  • to new error types by means of WithContext trait,
  • to existing errors by wrapping in ErrorContext type and converting to your type using From trait.

It provides extension methods for Result type as well as some free functions to help with adding context.

For examples and usage see crate documentation at docs.rs.

If you are looking for more dynamic way of adding context to error messages see problem crate.

Commit count: 30

cargo fmt