public class MongoWriteConcernException extends MongoServerException
WriteConcern
,
Serialized FormConstructor 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
fromThrowable, getCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MongoWriteConcernException(WriteConcernError writeConcernError, ServerAddress serverAddress)
writeConcernError
- the non-null write concern errorserverAddress
- the non-null server addresspublic MongoWriteConcernException(WriteConcernError writeConcernError, WriteConcernResult writeConcernResult, ServerAddress serverAddress)
writeConcernError
- the non-null write concern errorwriteConcernResult
- the write resultserverAddress
- the non-null server addresspublic WriteConcernError getWriteConcernError()
public WriteConcernResult getWriteResult()