diff options
Diffstat (limited to 'odb/pgsql/exceptions.cxx')
-rw-r--r-- | odb/pgsql/exceptions.cxx | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/odb/pgsql/exceptions.cxx b/odb/pgsql/exceptions.cxx deleted file mode 100644 index 28e7fc4..0000000 --- a/odb/pgsql/exceptions.cxx +++ /dev/null @@ -1,79 +0,0 @@ -// file : odb/pgsql/exceptions.cxx -// license : GNU GPL v2; see accompanying LICENSE file - -#include <sstream> - -#include <odb/pgsql/exceptions.hxx> - -using namespace std; - -namespace odb -{ - namespace pgsql - { - // - // database_exception - // - - database_exception:: - database_exception (const string& message) - : message_ (message), what_ (message) - { - } - - database_exception:: - database_exception (const string& sqlstate, - const string& message) - : sqlstate_ (sqlstate), message_ (message) - { - if (!sqlstate_.empty ()) - what_ = sqlstate_ + ": " + message_; - else - what_ = message_; - } - - database_exception:: - ~database_exception () ODB_NOTHROW_NOEXCEPT - { - } - - const char* database_exception:: - what () const ODB_NOTHROW_NOEXCEPT - { - return what_.c_str (); - } - - database_exception* database_exception:: - clone () const - { - return new database_exception (*this); - } - - // - // cli_exception - // - - cli_exception:: - cli_exception (const string& what) - : what_ (what) - { - } - - cli_exception:: - ~cli_exception () ODB_NOTHROW_NOEXCEPT - { - } - - const char* cli_exception:: - what () const ODB_NOTHROW_NOEXCEPT - { - return what_.c_str (); - } - - cli_exception* cli_exception:: - clone () const - { - return new cli_exception (*this); - } - } -} |