Page 328 -
P. 328

8 ½     exceptions and message boxes




                                               Get the message?







                         So when you say, “Not even
                         if you were the last man on
                         Earth,” what do you mean?

































                       Sometimes things just go wrong. You just need to handle it.
                      There will always be things beyond your control. Networks will fail. Files will disappear.
                       Smart coders learn how to deal with those kinds of errors and make their programs
                       recover gracefully. The best software keeps the user informed about the bad things that
                       happen and what should be done to recover. By learning how to use exceptions and
                       message boxes, you can take your software to the next level of reliability and quality.





                                                                                  this is a new chapter    293
   323   324   325   326   327   328   329   330   331   332   333