public class MongoSocketException extends MongoException
MongoException representing a network-related exception| Constructor and Description |
|---|
MongoSocketException(String message,
ServerAddress serverAddress)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ServerAddress |
getServerAddress()
Gets the server address for this exception.
|
fromThrowable, getCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoSocketException(String message, ServerAddress serverAddress)
message - the messageserverAddress - the addresspublic ServerAddress getServerAddress()