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.
|
getServerAddress
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
public MongoWriteException(WriteError error, ServerAddress serverAddress)
error
- the errorserverAddress
- the server addresspublic WriteError getError()
Copyright © 2010 - 2020 Adobe. All Rights Reserved