source: src/lib/chemistry/cca/except.cc@ 42a775

Last change on this file since 42a775 was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago

Initial commit based on 3.0.0alpha (here claimed as 2.4).

  • simply added all files.
  • Property mode set to 100644
File size: 316 bytes
Line 
1#ifdef __GNUG__
2#pragma implementation
3#endif
4
5#include <errno.h>
6
7#include "except.h"
8
9errno_exception::~errno_exception() throw()
10{
11}
12
13errno_exception::errno_exception(const std::string &wh)
14{
15 what_ = wh + ": " + strerror(errno);
16}
17
18const char *errno_exception::what() const throw ()
19{
20 return what_.c_str();
21}
Note: See TracBrowser for help on using the repository browser.