FluentResults icon indicating copy to clipboard operation
FluentResults copied to clipboard

[Suggestion/Question] Did you consider PartialSuccess result?

Open MoeFarag opened this issue 3 years ago • 1 comments

I know that any result with at least one Error in the Reasons would be marked as a failure, but sometimes operations succeed with some warnings.

So did you consider having a partial success status ? could be configured to act as success or fail for backward compatibility

ps: can contribute to add feature

MoeFarag avatar Apr 03 '23 04:04 MoeFarag

You can create a class Warning which inherit from Error if you want that a Warning is handled as error (=> failed result). You can also create a class Warning which inherit from Success if you want that a Warning is handled as success (=> success result). For more details about this topic see readme https://github.com/altmann/FluentResults#designing-errors-and-success-messages

altmann avatar Apr 07 '23 11:04 altmann