Crates.io | error-context |
lib.rs | error-context |
version | 0.1.2 |
source | src |
created_at | 2019-02-18 16:18:59.688257 |
updated_at | 2019-08-27 15:54:35.139375 |
description | Methods and types that help with adding additional context information to error types |
homepage | |
repository | https://github.com/jpastuszek/error-context |
max_upload_size | |
id | 115592 |
size | 19,642 |
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:
WithContext
trait,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.