public class MongoCursorNotFoundException extends MongoException
MongoException representing a cursor-not-found exception.MongoException.CursorNotFound, MongoException.DuplicateKey, MongoException.Network| Modifier and Type | Field and Description |
|---|---|
private long |
cursorId |
private static long |
serialVersionUID |
private ServerAddress |
serverAddress |
_code| Constructor and Description |
|---|
MongoCursorNotFoundException(long cursorId,
ServerAddress serverAddress)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCursorId()
Get the cursor id that wasn't found.
|
ServerAddress |
getServerAddress()
The server address where the cursor is.
|
getCode, parseprivate static final long serialVersionUID
private final long cursorId
private final ServerAddress serverAddress
MongoCursorNotFoundException(long cursorId,
ServerAddress serverAddress)
cursorId - cursor identifierserverAddress - server addresspublic long getCursorId()
public ServerAddress getServerAddress()