Serializablepublic class MongoWriteException extends MongoServerException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL| Constructor | Description |
|---|---|
MongoWriteException(WriteError error,
ServerAddress serverAddress) |
Construct an instance
|
| Modifier and Type | Method | Description |
|---|---|---|
WriteError |
getError() |
Gets the error.
|
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabelgetServerAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoWriteException(WriteError error, ServerAddress serverAddress)
error - the errorserverAddress - the server addresspublic WriteError getError()