Serializable
public class DuplicateKeyException extends WriteConcernException
WriteConcernException
representing a duplicate key exceptionTRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
Constructor | Description |
---|---|
DuplicateKeyException(BsonDocument response,
ServerAddress address,
WriteConcernResult writeConcernResult) |
Construct an instance.
|
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
getServerAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
extractErrorCode, extractErrorMessage, getErrorCode, getErrorMessage, getResponse, getWriteConcernResult
public DuplicateKeyException(BsonDocument response, ServerAddress address, WriteConcernResult writeConcernResult)
response
- the response from the serveraddress
- the server addresswriteConcernResult
- the write concern result