| 1 | <HTML> |
|---|
| 2 | <!-- |
|---|
| 3 | -- Copyright (c) Jeremy Siek 2002 |
|---|
| 4 | -- |
|---|
| 5 | -- Permission to use, copy, modify, distribute and sell this software |
|---|
| 6 | -- and its documentation for any purpose is hereby granted without fee, |
|---|
| 7 | -- provided that the above copyright notice appears in all copies and |
|---|
| 8 | -- that both that copyright notice and this permission notice appear |
|---|
| 9 | -- in supporting documentation. Jeremy Siek makes no |
|---|
| 10 | -- representations about the suitability of this software for any |
|---|
| 11 | -- purpose. It is provided "as is" without express or implied warranty. |
|---|
| 12 | --> |
|---|
| 13 | <Head> |
|---|
| 14 | <Title>Boost Graph Library: Exceptions</Title> |
|---|
| 15 | <BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" |
|---|
| 16 | ALINK="#ff0000"> |
|---|
| 17 | <IMG SRC="../../../boost.png" |
|---|
| 18 | ALT="C++ Boost" width="277" height="86"> |
|---|
| 19 | |
|---|
| 20 | <BR Clear> |
|---|
| 21 | |
|---|
| 22 | <h1><a href="../../../boost/graph/exception.hpp"><tt>boost/graph/exception.hpp</tt></a></h1> |
|---|
| 23 | |
|---|
| 24 | <P> |
|---|
| 25 | The BGL defines several exception classes for reporting errors from |
|---|
| 26 | BGL algorithms. Many of the BGL algorithms place certain requirements |
|---|
| 27 | on the input graph. If these requirements are not met then the |
|---|
| 28 | algorithm can not successfully complete, and instead throws the |
|---|
| 29 | appropriate exception. |
|---|
| 30 | </P> |
|---|
| 31 | |
|---|
| 32 | <h3>Synopsis</h3> |
|---|
| 33 | |
|---|
| 34 | <pre> |
|---|
| 35 | struct <a name="bad_graph">bad_graph</a> : public invalid_argument { |
|---|
| 36 | bad_graph(const string& what_arg); |
|---|
| 37 | }; |
|---|
| 38 | struct <a name="not_a_dag">not_a_dag</a> : public bad_graph { |
|---|
| 39 | not_a_dag(); |
|---|
| 40 | }; |
|---|
| 41 | struct <a name="negative_edge">negative_edge</a> : public bad_graph { |
|---|
| 42 | negative_edge(); |
|---|
| 43 | }; |
|---|
| 44 | struct <a name="negative_cycle">negative_cycle</a> : public bad_graph { |
|---|
| 45 | negative_cycle(); |
|---|
| 46 | }; |
|---|
| 47 | struct <a name="not_connected">not_connected</a> : public bad_graph { |
|---|
| 48 | not_connected(); |
|---|
| 49 | }; |
|---|
| 50 | </pre> |
|---|