up previous next contents
Next: Packages Up: Exceptions Previous: try, catch, and finally   Contents

When to use exceptions

  • Used for "unexpected error conditions".
  • Not meant for simple expected situations (end of an input stream should be expected).


up previous next contents
Next: Packages Up: Exceptions Previous: try, catch, and finally   Contents