diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 11:05:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 11:05:05 +0200 |
commit | 2c57577ac8995a83182190ae94e6b28f4715ca04 (patch) | |
tree | 660a72c984fde6f37cb04bb779d203f54f6cbb2e /odb/tracer/exceptions.cxx | |
parent | ffbed42338e0c7c3c76d4d9334d45755ac58e346 (diff) |
Add database_exception
Diffstat (limited to 'odb/tracer/exceptions.cxx')
-rw-r--r-- | odb/tracer/exceptions.cxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/odb/tracer/exceptions.cxx b/odb/tracer/exceptions.cxx new file mode 100644 index 0000000..14977cc --- /dev/null +++ b/odb/tracer/exceptions.cxx @@ -0,0 +1,31 @@ +// file : odb/tracer/exceptions.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include <odb/tracer/exceptions.hxx> + +using namespace std; + +namespace odb +{ + namespace tracer + { + database_exception:: + ~database_exception () throw () + { + } + + database_exception:: + database_exception (const string& what) + : what_ (what) + { + } + + char const* database_exception:: + what () const throw () + { + return what_.c_str (); + } + } +} |