Package com.mongodb

Class MongoCursorNotFoundException

    • Constructor Detail

      • MongoCursorNotFoundException

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

      • getCursorId

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