Advice
Home ] Up ] Exceptions: What and Why? ] Method Signatures and Exceptions ] Classification of Exceptions ] Catching Exceptions ] Throwing an Exception ] [ Advice ]

 

 

The textbook provides some very useful and relevant advice ("tips") on the use of exceptions (Seventh Edition, pp 576-9):

  1. Exception Handling is not supposed to replace a simple test
  2. Do not micromanage exceptions
  3. Make good use of the exception hierarchy
  4. Do not squelch exceptions
  5. When you detect an error, "tough love" works better than indulgence
  6. Propagating exceptions is not a sign of shame

All of these "tips" bear close study, and are recommended for everyday exception usage.

This page was last modified on 27 November, 2007