public class MongoWriteConcernException extends MongoServerException
WriteConcern
,
Serialized FormTRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
Constructor and Description |
---|
MongoWriteConcernException(WriteConcernError writeConcernError,
ServerAddress serverAddress)
Construct an instance.
|
MongoWriteConcernException(WriteConcernError writeConcernError,
WriteConcernResult writeConcernResult,
ServerAddress serverAddress)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
WriteConcernError |
getWriteConcernError()
Gets the write concern error.
|
WriteConcernResult |
getWriteResult()
Gets the write result.
|
getServerAddress
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
public MongoWriteConcernException(WriteConcernError writeConcernError, ServerAddress serverAddress)
writeConcernError
- the non-null write concern errorserverAddress
- the non-null server addresspublic MongoWriteConcernException(WriteConcernError writeConcernError, @Nullable WriteConcernResult writeConcernResult, ServerAddress serverAddress)
writeConcernError
- the non-null write concern errorwriteConcernResult
- the write resultserverAddress
- the non-null server addresspublic WriteConcernError getWriteConcernError()
public WriteConcernResult getWriteResult()
Copyright © 2010 - 2020 Adobe. All Rights Reserved