Skip to content

Databases should not have a public way to "Get" without "TryGet" #1

@WispyMouse

Description

@WispyMouse

Databases have a "TryGet" and a "Get" by convention. At time of writing, "Get" methods are public. This runs the risk of users calling "Get" directly on things that do not exist. This will result in an exception being thrown.

Only "TryGet" methodology should be public. The other methods should be internal or private, or removed if not necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseRelates to the "Database" lookup of Cards, Status Effects, etc.identified-in-testsNotates that a work item or issue was detected in relation to the Tests effort.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions