It's UWAweek 24 (1st semester, 2nd exam week)

help2005

This forum is provided to promote discussion amongst students enrolled in CITS2005 Object Oriented Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 257 articles.
Currently 1 other person reading this forum.


 UWA week 21 (1st semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
11:41am Wed 22nd May, Andrew G.

ANONYMOUS wrote:
> How can I effectively handle NoSuchElementException in the reverseNext method of my StudentListIterator implementation, particularly when there are no more elements to return?
I encourage you to read the documentation on `Iterator` and `NoSuchElementException` to understand when they are used. If you are not comfortable with the concept of exceptions you may also need to review the slides.
> Additionally, could someone guide us on implementing retry logic to handle QueryTimedOutException, ensuring that an ApiUnreachableException is thrown after exceeding the retry limit?
The purpose of the project is to take a problem specification and figure out how to build that using Java, so it is not reasonable to provide you guidance on how to implement it. I will attempt to leave you with hints to help you reason about the problem yourself. Pretend that you were managing retries by hand. When attempting to get a page, consider the possibilities: You could either successfully retrieve the page, or the query could fail. What do you then need to do in each of these cases? Imagine some scenarios where the query fails a different number of times before eventually succeeding (or where it never succeeds). The strategy for how to handle this is very simple and you should be able to figure it out yourself working through the process. Once you are comfortable with your understanding of the strategy, then your task is to write Java to implement that strategy.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy