public class MongoCursorNotFoundException extends MongoQueryException
MongoException
representing a cursor-not-found exception.TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
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.
|
getErrorCode, getErrorMessage
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
public MongoCursorNotFoundException(long cursorId, ServerAddress serverAddress)
cursorId
- cursor identifierserverAddress
- server addresspublic long getCursorId()
public ServerAddress getServerAddress()
getServerAddress
in class MongoServerException
Copyright © 2010 - 2020 Adobe. All Rights Reserved