public abstract class MongoServerException extends MongoException
| 构造器和说明 |
|---|
MongoServerException(int code,
java.lang.String message,
ServerAddress serverAddress)
Construct a new instance.
|
MongoServerException(java.lang.String message,
ServerAddress serverAddress)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ServerAddress |
getServerAddress()
Gets the address of the server.
|
fromThrowable, getCodepublic MongoServerException(java.lang.String message,
ServerAddress serverAddress)
message - the message from the serverserverAddress - the address of the serverpublic MongoServerException(int code,
java.lang.String message,
ServerAddress serverAddress)
code - the error code from the servermessage - the message from the serverserverAddress - the address of the serverpublic ServerAddress getServerAddress()