Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added paragraph relating to ERr50-CPP-EX1 and what is permitted

...

All exceptions thrown by an application must be caught by a matching exception handler. Even if the exception cannot be gracefully recovered from, using the matching exception handler ensures that the stack will be properly unwound and provides an opportunity to gracefully manage external resources before terminating the process.

As per ERR50-CPP-EX1, a program that encounters an un-recoverable exception may explicitly catch the exception and terminate, but it may not allow the exception to remain uncaught.

Noncompliant Code Example

...