Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

EXC00-EX0: An exception that occurs within a during the freeing of a resource may be suppressed. Typically resources are freed in catch or finally block may be suppressed, such as when closing a FileInputStream objectblocks, with the resource never being used again; therefore the exception has no influence on future program behavior. Examples of freeing resources include closing files, network sockets, shutting down threads, etc.

EXC00-EX1: When recovery from an exceptional condition is impossible at a particular abstraction level, code at that level should avoid handling that exceptional condition. In such cases, an appropriate exception must be thrown so that higher level code can catch the exceptional condition and can attempt recovery. The most common implementation for this case is to omit a catch block and consequently allow the exception to propagate normally, as shown below.

...