Got the answer I need from the Programming Ruby 2nd Edition book and thought I would share it here.<br><br>From the "Handling Exceptions" section (p. 361), I got that I should add the "rescue" block to the end of my site-walking methods, and not the calling method (
i.e. <span>
page_set_to_check()</span>). Basically I was using the rescue block in a way that Ruby didn't pay attention to.<br><br>So I made the following changes to my script:<br>(1) delete the <span>
page_set_to_check() method<br>(2) added the following rescue block to the end of each page set (site-walking) method:<br>----<br></span>module site_walkabout_methods<br> ...<br> def walk_Public_Pages<br> # launch ie
<br> # goto some page<br> # get page size and download time<br> # click to another page. yadda, yadda.<br> # ...<br> rescue => e<br> $something_went_wrong = 'Yes'
<br> puts e<br> ensure<br> write_status<br> end<br><br>end<br>----<br><br>So the methods themselves are self-correcting and I don't need to try and capture exceptions with some umbrella method. Cool.<br>
<br>I'm happy. Moving on..<br><br>Cheers. Paul C.<br><br>