aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:55:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:55:55 +0200
commit35e514ddf8c5b1ca72ecfa841b05d3f047650132 (patch)
tree86dd71072ad45dd18d142c9ca67bbfabcd62bde9 /odb/mysql/exceptions.hxx
parent47317b091245f7ab5df305953270bedcef3374fb (diff)
Add another constructor version
Diffstat (limited to 'odb/mysql/exceptions.hxx')
-rw-r--r--odb/mysql/exceptions.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/mysql/exceptions.hxx b/odb/mysql/exceptions.hxx
index ad9efa3..86cbb19 100644
--- a/odb/mysql/exceptions.hxx
+++ b/odb/mysql/exceptions.hxx
@@ -22,6 +22,10 @@ namespace odb
{
database_exception (MYSQL*);
database_exception (MYSQL_STMT*);
+ database_exception (unsigned int,
+ const std::string& sqlstate,
+ const std::string& message);
+
~database_exception () throw ();
unsigned int
@@ -46,6 +50,10 @@ namespace odb
what () const throw ();
private:
+ void
+ init ();
+
+ private:
unsigned int error_;
std::string sqlstate_;
std::string message_;