public class MongoWriteException extends MongoServerException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL| Constructor and Description |
|---|
MongoWriteException(WriteError error,
ServerAddress serverAddress)
Construct an instance
|
| Modifier and Type | Method and Description |
|---|---|
WriteError |
getError()
Gets the error.
|
getServerAddressaddLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabelpublic MongoWriteException(WriteError error, ServerAddress serverAddress)
error - the errorserverAddress - the server addresspublic WriteError getError()
Copyright © 2010 - 2023 Adobe. All Rights Reserved