public class MongoSocketException extends MongoException
MongoException representing a network-related exceptionTRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL| Constructor and Description |
|---|
MongoSocketException(java.lang.String message,
ServerAddress serverAddress)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ServerAddress |
getServerAddress()
Gets the server address for this exception.
|
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabelpublic MongoSocketException(java.lang.String message,
ServerAddress serverAddress)
message - the messageserverAddress - the addresspublic ServerAddress getServerAddress()
Copyright © 2010 - 2023 Adobe. All Rights Reserved