Package com.mongodb

Class 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 of MongoException representing a cursor-not-found exception.
    Since:
    2.12
    See Also:
    Serialized Form
    • Constructor Detail

      • MongoCursorNotFoundException

        public MongoCursorNotFoundException​(long cursorId,
                                            ServerAddress serverAddress)
        Deprecated.
        Construct a new instance.
        Parameters:
        cursorId - cursor identifier
        serverAddress - server address
    • Method Detail

      • getCursorId

        public long getCursorId()
        Deprecated.
        Get the cursor id that wasn't found.
        Returns:
        the ID of the cursor