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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.0
    • Component/s: Write Operations
    • None


      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.

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

              Created:
              Updated:
              Resolved: