public class MongoNotPrimaryException extends MongoServerException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
MongoNotPrimaryException(ServerAddress serverAddress)
Construct an instance.
|
getServerAddress
fromThrowable, getCode
private static final long serialVersionUID
public MongoNotPrimaryException(ServerAddress serverAddress)
serverAddress
- the address of the server