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
The flattened error type
Enums
The error Tree structure.
Traits
Adds a label to the error tree.
Convenience trait to convert tuple of
(success: T, errors: Vec<E>)
to a result : Result<T, ErrorTree<L, E>>
Convenience trait to label errors within a
Result
.