Serializable
public 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, getResponse
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
getServerAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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