Skip to content

Add support to multiple possible exceptions on Try type #3

@marcellalves

Description

@marcellalves

I'm using this library for the first time, to use checked exceptions like Java´s, but I´m not able to add more than one possible exception.

In Java I can define a method's interface like this:

public Position Parent(Position v) throws InvalidPositionException, BoundaryViolationException;

But in C# using the FucntionalCSharp library, I'm not able to do this:

Try<InvalidPositionException, BoundaryViolationException, IPosition> Parent(IPosition value);

Do you think this would be a good addition? Please, let me know and if it is, I can work on a pull request to implement this feature.

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