ListIndexes should use CommandException for catching missing namespace and database errors

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ListIndexes catches a MongoDB\Driver\Exception\RuntimeException to check error codes and suppress missing namespace/database errors. At the very least it should use ServerException (first class where codes are guaranteed to originate from the server), but likely CommandException for consistency with other classes (e.g. DropCollection).

            Assignee:
            Tanli Su (Inactive)
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: