Skip to content

Why is Result<T>.Failure not using Exceptions rather than strings? #598

Open
@vgallegob

Description

@vgallegob

I wish the library used Exceptions rather than strings on Result.

Exceptions are far better for representing errors.

They can be translated, they can have parameters, thy interop very well with TryCatch, stackTraces...

Now our code is much more vervose.

Have you considered reverting this?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions