Crate error_trees

Source
Expand description

This crate provides a convenient way of handling multiple errors.

Instead of returning early with the first error in your app, it helps you store the errors that occur in a tree structure. It lets you label the errors, and flatten then into a list to present to the user.

Structs§

FlatError
The flattened error type

Enums§

ErrorTree
The error Tree structure.

Traits§

FlattenResultErrors
IntoErrorTree
Adds a label to the error tree.
IntoResult
Convenience trait to convert tuple of (success: T, errors: Vec<E>) to a result : Result<T, ErrorTree<L, E>>
LabelResult
Convenience trait to label errors within a Result.