Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-636

ListIndexes should use CommandException for catching missing namespace and database errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.0
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Tanli Su (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: