exception.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <HTML>
  2. <!--
  3. Copyright (c) Jeremy Siek 2002
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. -->
  8. <Head>
  9. <Title>Boost Graph Library: Exceptions</Title>
  10. <BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
  11. ALINK="#ff0000">
  12. <IMG SRC="../../../boost.png"
  13. ALT="C++ Boost" width="277" height="86">
  14. <BR Clear>
  15. <h1><a href="../../../boost/graph/exception.hpp"><tt>boost/graph/exception.hpp</tt></a></h1>
  16. <P>
  17. The BGL defines several exception classes for reporting errors from
  18. BGL algorithms. Many of the BGL algorithms place certain requirements
  19. on the input graph. If these requirements are not met then the
  20. algorithm can not successfully complete, and instead throws the
  21. appropriate exception.
  22. </P>
  23. <h3>Synopsis</h3>
  24. <pre>
  25. struct <a name="bad_graph">bad_graph</a> : public invalid_argument {
  26. bad_graph(const string& what_arg);
  27. };
  28. struct <a name="not_a_dag">not_a_dag</a> : public bad_graph {
  29. not_a_dag();
  30. };
  31. struct <a name="negative_edge">negative_edge</a> : public bad_graph {
  32. negative_edge();
  33. };
  34. struct <a name="negative_cycle">negative_cycle</a> : public bad_graph {
  35. negative_cycle();
  36. };
  37. struct <a name="not_connected">not_connected</a> : public bad_graph {
  38. not_connected();
  39. };
  40. </pre>