Uploaded image for project: 'Password Manager'
  1. Password Manager
  2. PSWDMNGR-8

PasswordRegistry#getPassword should fail gracefully

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Outdated
    • Neutral
    • None
    • None
    • None
    • None

    Description

      When calling

      PasswordRegistry#getPassword(id)

      and if there is no password by the given id,
      the method throws Registry.NoSuchDefinitionException,
      which seems a bit harsh.

      I propose to add this to the method signature.
      Or catching the error and returning null.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              cmeier Christoph Meier
              AdminX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD