diff options
Diffstat (limited to 'libodb/odb/details/posix/exceptions.cxx')
-rw-r--r-- | libodb/odb/details/posix/exceptions.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libodb/odb/details/posix/exceptions.cxx b/libodb/odb/details/posix/exceptions.cxx new file mode 100644 index 0000000..c346655 --- /dev/null +++ b/libodb/odb/details/posix/exceptions.cxx @@ -0,0 +1,22 @@ +// file : odb/details/posix/exceptions.cxx +// license : GNU GPL v2; see accompanying LICENSE file + +#include <odb/details/posix/exceptions.hxx> + +namespace odb +{ + namespace details + { + const char* posix_exception:: + what () const ODB_NOTHROW_NOEXCEPT + { + return "POSIX API error"; + } + + posix_exception* posix_exception:: + clone () const + { + return new posix_exception (*this); + } + } +} |