public class MongoSocketException extends MongoException
MongoException representing a network-related exception| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private ServerAddress |
serverAddress |
| Constructor and Description |
|---|
MongoSocketException(java.lang.String message,
ServerAddress serverAddress)
Construct a new instance.
|
MongoSocketException(java.lang.String msg,
ServerAddress serverAddress,
java.lang.Throwable e) |
| Modifier and Type | Method and Description |
|---|---|
ServerAddress |
getServerAddress()
Gets the server address for this exception.
|
fromThrowable, getCodeprivate static final long serialVersionUID
private final ServerAddress serverAddress
MongoSocketException(java.lang.String msg,
ServerAddress serverAddress,
java.lang.Throwable e)
serverAddress - the addressmsg - the messagee - the causepublic MongoSocketException(java.lang.String message,
ServerAddress serverAddress)
message - the messageserverAddress - the addresspublic ServerAddress getServerAddress()