Package com.mongodb
Class MongoCursorNotFoundException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- java.lang.RuntimeException
 - 
- com.mongodb.MongoException
 - 
- com.mongodb.MongoServerException
 - 
- com.mongodb.MongoQueryException
 - 
- com.mongodb.MongoCursorNotFoundException
 
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
@Deprecated(since="2021-05-27") public class MongoCursorNotFoundException extends MongoQueryException
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Subclass ofMongoExceptionrepresenting a cursor-not-found exception.- Since:
 - 2.12
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MongoCursorNotFoundException(long cursorId, ServerAddress serverAddress)Deprecated.Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetCursorId()Deprecated.Get the cursor id that wasn't found.ServerAddressgetServerAddress()Deprecated.The server address where the cursor is.- 
Methods inherited from class com.mongodb.MongoQueryException
getErrorCode, getErrorMessage 
- 
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MongoCursorNotFoundException
public MongoCursorNotFoundException(long cursorId, ServerAddress serverAddress)Deprecated.Construct a new instance.- Parameters:
 cursorId- cursor identifierserverAddress- server address
 
 - 
 
- 
Method Detail
- 
getCursorId
public long getCursorId()
Deprecated.Get the cursor id that wasn't found.- Returns:
 - the ID of the cursor
 
 
- 
getServerAddress
public ServerAddress getServerAddress()
Deprecated.The server address where the cursor is.- Overrides:
 getServerAddressin classMongoServerException- Returns:
 - the ServerAddress representing the server the cursor was on.
 
 
 - 
 
 -