Package com.mongodb

Class DuplicateKeyException

    • Constructor Detail

      • DuplicateKeyException

        public DuplicateKeyException​(BsonDocument response,
                                     ServerAddress address,
                                     WriteConcernResult writeConcernResult)
        Construct an instance.
        Parameters:
        response - the response from the server
        address - the server address
        writeConcernResult - the write concern result