Serializablepublic class MongoCursorNotFoundException extends MongoQueryException
MongoException representing a cursor-not-found exception.| Constructor | Description |
|---|---|
MongoCursorNotFoundException(long cursorId,
ServerAddress serverAddress) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
long |
getCursorId() |
Get the cursor id that wasn't found.
|
ServerAddress |
getServerAddress() |
The server address where the cursor is.
|
fromThrowable, fromThrowableNonNull, getCodegetErrorCode, getErrorMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoCursorNotFoundException(long cursorId,
ServerAddress serverAddress)
cursorId - cursor identifierserverAddress - server addresspublic long getCursorId()
public ServerAddress getServerAddress()
getServerAddress in class MongoServerException