Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2598

com.mongodb.MongoWriteException instead of com.mongodb.DuplicateKeyException

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.5.0
    • Write Operations
    • None

    Description


      returns com.mongodb.MongoWriteException: E11000 duplicate key error index during upserts instead of com.mongodb.DuplicateKeyException. It would be helpful if the driver returns com.mongodb.DuplicateKeyException so a user can take a useful action.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kant kant kodali
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: