|
Error Handling: the ConceptWhen you examine a program that is intended to solve a real problem in the real world, a surprisingly large portion of the program will be written just to take care of possible errors. Even in the simple web browser from the example earlier in this tutorial, which hardly qualifies as a real-world program, we had to handle no less than three possible errors:
Error handling usually consists of two parts: detecting the error, and handling it. |
|||