Versions Compared

Key

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

...

  • A realtime control system that catches and logs all exceptions at the outermost layer, followed by warm-starting the system so that realtime control can continue. Such approaches are clearly justified when program termination would have safety-critical or mission-critical consequences.
  • A system that catches all exceptions that propagate out of each major subsystem, logs the exceptions for later debugging, and subsequently shuts down the failing subsystem (perhaps replacing it with a much simpler, limited-functionality version) while continuing other services.

EXC14-EX4: Code that invokes methods from pre-existing third-party libraries should conform with the interfaces of those libraries. Consequently, when a third-party library method can throw an overly-general exception, calling code is permitted to catch the overly-general exception. Callers should translate such exceptions to their more-specific equivalents when feasible.

Risk Assessment

Catching RuntimeException traps several types of exceptions not intended to be caught. This prevents them from being handled properly.

...