public class DuplicateKeyException extends WriteConcernException
WriteConcernException representing a duplicate key exception| Constructor and Description |
|---|
DuplicateKeyException(BsonDocument response,
ServerAddress address,
WriteConcernResult writeConcernResult)
Construct an instance.
|
extractErrorCode, extractErrorMessage, getErrorCode, getErrorMessage, getResponse, getWriteConcernResultgetServerAddressfromThrowable, getCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DuplicateKeyException(BsonDocument response, ServerAddress address, WriteConcernResult writeConcernResult)
response - the response from the serveraddress - the server addresswriteConcernResult - the write concern result