by figment · 16y ago · 0 comments
user_method() call_to_get_info_from_remote_system()
Just because call_to_get_info_from_remote_system fails doesn't mean you have to be done.
user_method(tries) while i < tries if call_to_get_info_from_remote_system() == FAIL # log error if check_remote_system_reachable() # fatal error be done i++
granted this makes all kinds of assumptions like you can afford to retry this operation up to N times. It also may break the rule of "Stupidity"
No comments yet.