source:
ThirdParty/mpqc_open/src/lib/chemistry/cca/except.cc@
a844d8
Last change on this file since a844d8 was 860145, checked in by , 8 years ago | |
---|---|
|
|
File size: 316 bytes |
Rev | Line | |
---|---|---|
[0b990d] | 1 | #ifdef __GNUG__ |
2 | #pragma implementation | |
3 | #endif | |
4 | ||
5 | #include <errno.h> | |
6 | ||
7 | #include "except.h" | |
8 | ||
9 | errno_exception::~errno_exception() throw() | |
10 | { | |
11 | } | |
12 | ||
13 | errno_exception::errno_exception(const std::string &wh) | |
14 | { | |
15 | what_ = wh + ": " + strerror(errno); | |
16 | } | |
17 | ||
18 | const char *errno_exception::what() const throw () | |
19 | { | |
20 | return what_.c_str(); | |
21 | } |
Note:
See TracBrowser
for help on using the repository browser.