public class MongoSocketException extends MongoException
MongoException
representing a network-related exceptionConstructor 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.
|
fromThrowable, getCode
public MongoSocketException(java.lang.String message, ServerAddress serverAddress)
message
- the messageserverAddress
- the addresspublic ServerAddress getServerAddress()