AggregationOutput should not throw IllegalArgumentException on command failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.12.3
    • Affects Version/s: 2.12.0
    • Component/s: Command Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the DBCollection.aggregate(final List<DBObject> pipeline) method which returns an AggregationOutput will throw an IllegalArgumentException to clients.

      I would instead expect the command result to be checked with CommandResult.throwOnError() as is done for the other overloaded aggregate methods returning a DBCursor.

            Assignee:
            Ross Lawley
            Reporter:
            John Morales (Inactive)
            None
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: