-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "WithErrors" methods that accept error object/error message collections? #73
Comments
Hi thanks for your feedback! This is interesting. In which scenarios do you use this extension method? |
There are currently 2 instances.
The second case is similar. DotLiquid's Template obj contains errors if rendering went wrong.
|
Thanks for the samples. I will have a look at it tomorrow but I also think that it makes sense to provide a WithErrors(...) method. |
With the current version of FluentResults you can use the method The next version of FluentResults contains new methods to support your scenarios in a more readable way
Hint FluentResults supports a hierarchy of errors. If you use |
The new version is published https://www.nuget.org/packages/FluentResults/2.3.0 |
Thanks for the update. Works great. |
Thanks for the response. If you have any other feedback please let me know. |
I've just started with the whole concept of Result objects, and currently trying to use them/learn how to use them in the old pet project of mine.
One thing that I found lacking is the method like .WithErrors, that would accept IEnumerable of either Error objects or error messages. Because there are few places where I already have error collection of some sort, and it would be convenient to attach it to the Result.
Currently I had to write an extension method:
What are your thoughts on adding something similar to the library?
Or is there something I've missed?
The text was updated successfully, but these errors were encountered: