Package com.mongodb

Class DuplicateKeyException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated(since="2021-05-27")
    public class DuplicateKeyException
    extends WriteConcernException
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    Subclass of WriteConcernException representing a duplicate key exception
    Since:
    2.12
    See Also:
    Serialized Form
    • Constructor Detail

      • DuplicateKeyException

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