If you want to terminate on an unexpected exception, then don’t sniff at every exception; just let the process terminate

1 · Raymond Chen · Oct. 24, 2019, 2:18 p.m.
Summary
You’ve probably had to write code that lives at the boundary between exception-based code and error-code-based code. HRESULT ConvertExceptionToHResult() { try { throw; } catch (MyCustomExceptionClass const&amp ex) { return ex.GetHResult(); } catch (std::bad_alloc const&amp) { return E_OUTOFMEMORY; } catch (...) { // Disallowed exception. The post If you want to terminate on an unexpected exception, then don’t sniff at ev...