Serializable
public class MongoIncompatibleDriverException extends MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
Constructor | Description |
---|---|
MongoIncompatibleDriverException(String message,
ClusterDescription clusterDescription) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
ClusterDescription |
getClusterDescription() |
The cluster description which was determined to be incompatible.
|
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MongoIncompatibleDriverException(String message, ClusterDescription clusterDescription)
message
- the error messageclusterDescription
- the cluster descriptionpublic ClusterDescription getClusterDescription()