throw_exception.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. <title>BOOST_OUTCOME_THROW_EXCEPTION(expr) - Boost.Outcome documentation</title>
  4. <link rel="stylesheet" href="../../css/boost.css" type="text/css">
  5. <meta name="generator" content="Hugo 0.52 with Boostdoc theme">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
  7. <link rel="icon" href="../../images/favicon.ico" type="image/ico"/>
  8. <body><div class="spirit-nav">
  9. <a accesskey="p" href="../../reference/macros/thread_local.html"><img src="../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../reference/macros.html"><img src="../../images/up.png" alt="Up"></a>
  11. <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/macros/try.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>BOOST_OUTCOME_THROW_EXCEPTION(expr)</code></h1></div></div></div>
  13. <p>Throws a C++ exception, or equivalent thereof.</p>
  14. <p><em>Overridable</em>: Define before inclusion.</p>
  15. <p><em>Default</em>:<dl>
  16. <dt>Standalone Outcome (C++ exceptions enabled):
  17. <dd>To <code>throw expr</code>
  18. <dt>Standalone Outcome (C++ exceptions disabled):
  19. <dd>To <code>BOOST_OUTCOME_V2_NAMESPACE::detail::do_fatal_exit(#expr)</code> which is a function which prints a useful error message including a stack backtrace (where available) to <code>stderr</code> before calling <code>abort()</code>.
  20. <dt>Boost.Outcome:
  21. <dd>To <code>BOOST_THROW_EXCEPTION(expr)</code>.
  22. </dl></p>
  23. <p><em>Header</em>: <code>&lt;boost/outcome/config.hpp&gt;</code></p>
  24. </div><p><small>Last revised: December 12, 2018 at 22:01:42 UTC</small></p>
  25. <hr>
  26. <div class="spirit-nav">
  27. <a accesskey="p" href="../../reference/macros/thread_local.html"><img src="../../images/prev.png" alt="Prev"></a>
  28. <a accesskey="u" href="../../reference/macros.html"><img src="../../images/up.png" alt="Up"></a>
  29. <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/macros/try.html"><img src="../../images/next.png" alt="Next"></a></div></body>
  30. </html>