public class MongoCursorNotFoundException extends MongoQueryException
MongoException representing a cursor-not-found exception.| 构造器和说明 |
|---|
MongoCursorNotFoundException(long cursorId,
ServerAddress serverAddress)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCursorId()
Get the cursor id that wasn't found.
|
ServerAddress |
getServerAddress()
The server address where the cursor is.
|
getErrorCode, getErrorMessagefromThrowable, getCodepublic MongoCursorNotFoundException(long cursorId,
ServerAddress serverAddress)
cursorId - cursor identifierserverAddress - server addresspublic long getCursorId()
public ServerAddress getServerAddress()
getServerAddress 在类中 MongoServerException