public class MongoWriteException extends MongoServerException
Modifier and Type | Field and Description |
---|---|
private WriteError |
error |
private static long |
serialVersionUID |
Constructor and Description |
---|
MongoWriteException(WriteError error,
ServerAddress serverAddress)
Construct an instance
|
Modifier and Type | Method and Description |
---|---|
WriteError |
getError()
Gets the error.
|
getServerAddress
fromThrowable, getCode
private static final long serialVersionUID
private final WriteError error
public MongoWriteException(WriteError error, ServerAddress serverAddress)
error
- the errorserverAddress
- the server addresspublic WriteError getError()