Versions Compared

Key

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

...

The currently handled exception is rethrown if control reaches the end of a handler of the function-try-block of a constructor or destructor.

Thus, the caught exception will inevitably escape from the SomeClass destructor. Note that exceptions thrown from noncompliant destructors of class member objects, or from base classes, cannot be handled as they are implicitly rethrown when control reaches the end of the function-try-block handler, which is the only way to catch such exceptions.

...

...