Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Add the ability to try and get an item without an exceptionΒ #112

Open
@thrixton

Description

@thrixton

Having to handle an exception (ItemNotFoundException) when a get does not find an item is a difficult pattern and requires liberal nesting or messy try/catch blocks.
Would it be possible to add a tryGet method which instead of throwing an exception, returns null if the search key does not exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions