equal
deleted
inserted
replaced
1 /* -*- C++ -*- |
1 /* -*- C++ -*- |
2 * src/hugo/error.h - Part of HUGOlib, a generic C++ optimization library |
2 * src/lemon/error.h - Part of LEMON, a generic C++ optimization library |
3 * |
3 * |
4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
5 * (Egervary Combinatorial Optimization Research Group, EGRES). |
5 * (Egervary Combinatorial Optimization Research Group, EGRES). |
6 * |
6 * |
7 * Permission to use, modify and distribute this software is granted |
7 * Permission to use, modify and distribute this software is granted |
12 * express or implied, and with no claim as to its suitability for any |
12 * express or implied, and with no claim as to its suitability for any |
13 * purpose. |
13 * purpose. |
14 * |
14 * |
15 */ |
15 */ |
16 |
16 |
17 #ifndef HUGO_ERROR_H |
17 #ifndef LEMON_ERROR_H |
18 #define HUGO_ERROR_H |
18 #define LEMON_ERROR_H |
19 |
19 |
20 //! \ingroup misc |
20 //! \ingroup misc |
21 //! \file |
21 //! \file |
22 //! \brief Basic error handling (signaling) routines. |
22 //! \brief Basic error handling (signaling) routines. |
23 |
23 |
24 #include <exception> |
24 #include <exception> |
25 #include <string> |
25 #include <string> |
26 #include <sstream> |
26 #include <sstream> |
27 |
27 |
28 |
28 |
29 namespace hugo { |
29 namespace lemon { |
30 |
30 |
31 /** |
31 /** |
32 * \brief Generic exception class. |
32 * \brief Generic exception class. |
33 * |
33 * |
34 * \todo Do we need this? |
34 * \todo Do we need this? |
72 * \todo Is this the right place for this? It should be used only in |
72 * \todo Is this the right place for this? It should be used only in |
73 * modules under development. |
73 * modules under development. |
74 */ |
74 */ |
75 |
75 |
76 # define FIXME(msg) \ |
76 # define FIXME(msg) \ |
77 do { throw ::hugo::Exception() << "FIXME: " msg " (in: " \ |
77 do { throw ::lemon::Exception() << "FIXME: " msg " (in: " \ |
78 __FILE__ ", " << __LINE__ << ")"; \ |
78 __FILE__ ", " << __LINE__ << ")"; \ |
79 } while(false) |
79 } while(false) |
80 |
80 |
81 } |
81 } |
82 #endif // HUGO_ERROR_H |
82 #endif // LEMON_ERROR_H |