title: C++ unhandled exceptions
body: <p>Does C++ offer a way to 'show' something visual if an unhandled exception occurs?</p>
  <p>What I want to do is to make something like <code>assert(unhandled exception.msg())</code> if it actually happens (like in the following sample):</p>
  <pre><code>#include &lt;stdexcept&gt;
  
  void foo() {
     throw std::runtime_error(&quot;Message!&quot;);
  }
  
  int main() {
   foo();
  }
  </code></pre>
  <p><em>I expect this kind of code not to terminate immediately (because exception was unhandled), rather show custom assertion message (<code>Message!</code> actually).</em></p>
  <p>Is that possible?</p>