Serializablepublic class DuplicateKeyException extends WriteConcernException
WriteConcernException representing a duplicate key exception| Constructor | Description |
|---|---|
DuplicateKeyException(BsonDocument response,
ServerAddress address,
WriteConcernResult writeConcernResult) |
Construct an instance.
|
fromThrowable, fromThrowableNonNull, getCodegetServerAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringextractErrorCode, extractErrorMessage, getErrorCode, getErrorMessage, getResponse, getWriteConcernResultpublic DuplicateKeyException(BsonDocument response, ServerAddress address, WriteConcernResult writeConcernResult)
response - the response from the serveraddress - the server addresswriteConcernResult - the write concern result