Closed emilien-puget closed 11 months ago
Hey! I haven't noticed your PR, sorry! I'll take a look at it during the weekend.
In fact, I had a similar feature in mind, but I decided not to include it after prototyping. However, maybe now is a good time to revisit the idea.
Greetings,
A way to add arbitrary values to an error chain would be nice to add context to an error chain, here is my proposal
WithValue
method to add a value to an error chainValues
method to retrieve all the values from an error chain