source:
trunk/lib/utility/Exception.h
@
389
Last change on this file since 389 was 389, checked in by , 17 years ago | |
---|---|
|
|
File size: 487 bytes |
Rev | Line | |
---|---|---|
[341] | 1 | // $Id: Exception.h 389 2005-08-15 11:37:07Z peter $ |
2 | ||
3 | #ifndef _theplu_utility_exception_ | |
4 | #define _theplu_utility_exception_ | |
5 | ||
6 | #include <stdexcept> | |
7 | #include <string> | |
8 | ||
9 | namespace theplu { | |
10 | namespace utility { | |
11 | ||
[389] | 12 | /// |
13 | /// @brief Class | |
14 | /// | |
15 | /// @todo document | |
16 | /// | |
[341] | 17 | class IO_error : public std::runtime_error |
18 | { | |
19 | public: | |
20 | IO_error(void) throw() : std::runtime_error("IO_error:") {} | |
21 | IO_error(std::string& message) throw() | |
22 | : std::runtime_error("IO_error: " + message) {} | |
23 | }; | |
24 | ||
25 | ||
26 | }} // of namespace utility and namespace theplu | |
27 | ||
28 | #endif | |
29 | ||
30 |
Note: See TracBrowser
for help on using the repository browser.