public abstract class MongoServerException extends MongoException
| Constructor and Description | 
|---|
| MongoServerException(int code,
                    String message,
                    ServerAddress serverAddress)Construct a new instance. | 
| MongoServerException(String message,
                    ServerAddress serverAddress)Construct a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| ServerAddress | getServerAddress()Gets the address of the server. | 
fromThrowable, getCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoServerException(String message, ServerAddress serverAddress)
message - the message from the serverserverAddress - the address of the serverpublic MongoServerException(int code,
                            String message,
                            ServerAddress serverAddress)
code - the error code from the servermessage - the message from the serverserverAddress - the address of the serverpublic ServerAddress getServerAddress()