SerializableMongoSocketClosedException, MongoSocketOpenException, MongoSocketReadException, MongoSocketReadTimeoutException, MongoSocketWriteExceptionpublic class MongoSocketException extends MongoException
MongoException representing a network-related exceptionTRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL| Constructor | Description |
|---|---|
MongoSocketException(String message,
ServerAddress serverAddress) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServerAddress |
getServerAddress() |
Gets the server address for this exception.
|
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoSocketException(String message, ServerAddress serverAddress)
message - the messageserverAddress - the addresspublic ServerAddress getServerAddress()