CSC207H1 Lecture : oct17c.docx

31 views1 pages
11 Jan 2013
School
Course
Professor

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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions