Skip to content

Try construct #3

@aghasemi

Description

@aghasemi

Hi,

Thanks for the package. I really find it useful.

Is there any plan to have a try() method similar to the Try in Scala, which handles both checked and unchecked exceptions?

It could be essentially syntactic sugar for

Exceptions.log().get(Exceptions.sneak().supplier(() -> my_throwing_lambda)).orElse(fallback)

Thanks
Best

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