Serializable
public class MongoWriteException extends MongoServerException
Constructor | Description |
---|---|
MongoWriteException(WriteError error,
ServerAddress serverAddress) |
Construct an instance
|
Modifier and Type | Method | Description |
---|---|---|
WriteError |
getError() |
Gets the error.
|
fromThrowable, fromThrowableNonNull, getCode
getServerAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MongoWriteException(WriteError error, ServerAddress serverAddress)
error
- the errorserverAddress
- the server addresspublic WriteError getError()