diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-14 11:57:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-14 11:57:40 +0200 |
commit | 4ac5ce29ecb1a8ce362e411becb9161888bd6eef (patch) | |
tree | 8007b3ff9158482e60253f3a8d85f0c149b30de0 /odb/mysql/exceptions.cxx | |
parent | 82aad8dee49a0c645ada631cc8aeb0266ba3ecc5 (diff) |
Add argc/argv database ctor
Diffstat (limited to 'odb/mysql/exceptions.cxx')
-rw-r--r-- | odb/mysql/exceptions.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/odb/mysql/exceptions.cxx b/odb/mysql/exceptions.cxx index 1c535dd..3446651 100644 --- a/odb/mysql/exceptions.cxx +++ b/odb/mysql/exceptions.cxx @@ -15,6 +15,10 @@ namespace odb { namespace mysql { + // + // database_exception + // + database_exception:: ~database_exception () throw () { @@ -72,5 +76,26 @@ namespace odb { return what_.c_str (); } + + // + // cli_exception + // + + cli_exception:: + cli_exception (const std::string& what) + : what_ (what) + { + } + + cli_exception:: + ~cli_exception () throw () + { + } + + const char* cli_exception:: + what () const throw () + { + return what_.c_str (); + } } } |