June 2010
Intermediate to advanced
328 pages
7h 51m
English
You can omit error checking when there’s really nothing for you to do in response to the error. For example, the close function for a database connection returns a status, but if your application is about to finish and exit anyway, it’s likely that the resources for that connection will be cleaned up regardless.
Exceptions in object-oriented languages allow you to trigger an exception without being responsible for handling it. Your code trusts that whatever code called yours is the code that’s responsible for handling the exception. Your code therefore can allow the exception to pass back up the calling stack.
Read now
Unlock full access