public class DuplicateKeyException extends WriteConcernException
WriteConcernException representing a duplicate key exception.MongoException.CursorNotFound, MongoException.DuplicateKey, MongoException.Network| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
_code| Constructor and Description |
|---|
DuplicateKeyException(CommandResult commandResult)
Construct a new instance with the CommandResult from getlasterror command
|
getCommandResult, getErrorMessage, getServerAddressgetCode, parseprivate static final long serialVersionUID
DuplicateKeyException(CommandResult commandResult)
commandResult - the command result