authenticate method declares throw MongoException but doesn't actually throw it

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.5
    • Affects Version/s: 2.4
    • Component/s: API
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      The current signature in DB is like
      public boolean authenticate(String username, char[] passwd ) throws MongoException

      however the only things thrown by the method are NPE & IllegalStateException. It is confusing to suppose the failure to authenticate could throw an exception while in fact it only returns a boolean

            Assignee:
            Antoine Girbal (Inactive)
            Reporter:
            Koen Serry
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: