Serializablepublic class MongoNotPrimaryException extends MongoCommandException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL| Constructor | Description |
|---|---|
MongoNotPrimaryException(ServerAddress serverAddress) |
Deprecated.
|
MongoNotPrimaryException(BsonDocument response,
ServerAddress serverAddress) |
Construct an instance.
|
getErrorCode, getErrorCodeName, getErrorMessage, getResponseaddLabel, 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 MongoNotPrimaryException(BsonDocument response, ServerAddress serverAddress)
response - the full response from the serverserverAddress - the address of the server@Deprecated public MongoNotPrimaryException(ServerAddress serverAddress)
MongoNotPrimaryException(BsonDocument, ServerAddress)serverAddress - the address of the server