The code you’ve seen in this book has been created for illustration purposes. It has not dealt with errors so that you would not be distracted from the central issues being presented. Real-world programs must take error conditions into consideration.
Today, you will learn
• What exceptions are
• How exceptions are used and what issues they raise
• How to build exception hierarchies
• How exceptions fit into an overall error-handling approach
• What a debugger is
It is rare for a real-world-sized program not to have some sort of error, or bug. The bigger the program, the more likely there will be bugs. In fact, in larger programs, it is often the case that many bugs ...