Changeset 490:ceb56ff9d07f in lemon-0.x for src/include/error.h
- Timestamp:
- 04/30/04 01:24:42 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@648
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/include/error.h
r489 r490 7 7 //! \brief Basic error handling (signaling) routines. 8 8 9 #include <exception> 9 10 #include <string> 10 11 #include <sstream> … … 28 29 Exception() {} 29 30 explicit Exception(const std::string &s) { buf << s; } 30 Exception(const Exception &e) { buf << e.buf.str(); } 31 Exception(const Exception &e) : std::exception() { 32 buf << e.buf.str(); 33 } 31 34 virtual ~Exception() throw() {} 32 35 … … 57 60 58 61 # define FIXME(msg) \ 59 do { throw ::hugo::Exception( "FIXME: " msg) <<" (in: " \60 << __FILE__ << ", " << __LINE__ << ")";\62 do { throw ::hugo::Exception() << "FIXME: " msg " (in: " \ 63 __FILE__ ", " << __LINE__ << ")"; \ 61 64 } while(false) 62 65
Note: See TracChangeset
for help on using the changeset viewer.