CSC207H1 Lecture : oct17c.docx
31 views1 pages
Document Summary
Why was that code bad: the situation that the exception reports is not exceptional, it"s uncharacteristic. Real uses of exceptions aren"t local throw and catch aren"t generally in the same block of code. The finally clause is always executed, whether an exception was thrown or not, and whether or not the thrown exception was caught. Not an exsuba is thrown: } catch (exsubb e) , // we never do this, even if an exsubb is thrown, } finally , // we always do this, even if no exception is thrown.
Get access
Grade+
$40 USD/m
Billed monthly
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers