summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Baumann <Andreas.Baumann@eurospider.com>2010-09-06 10:53:02 +0200
committerAndreas Baumann <Andreas.Baumann@eurospider.com>2010-09-06 10:53:02 +0200
commit1dcc640c490a6619eeba19a6bdb93c4ac8d5a6fc (patch)
treefa6db7059152ef1f34ed925b39c92d068812cb75 /include
parent73a0556dca6ff98da2a77a34e75c5eec5969cd87 (diff)
downloadsqlitexx-1dcc640c490a6619eeba19a6bdb93c4ac8d5a6fc.tar.gz
sqlitexx-1dcc640c490a6619eeba19a6bdb93c4ac8d5a6fc.tar.bz2
more cleanup in exceptions, added a database_locked exception,
now we must fix the code to throw this exception all the time and not do funny sleeps in the middle of the sqlitexx layer!
Diffstat (limited to 'include')
-rw-r--r--include/sqlite3xx/except.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/sqlite3xx/except.hpp b/include/sqlite3xx/except.hpp
index 6a70216..742f17c 100644
--- a/include/sqlite3xx/except.hpp
+++ b/include/sqlite3xx/except.hpp
@@ -47,7 +47,8 @@ class SQLITEXX_LIBEXPORT failure : public sqlitexx_exception, public runtime_err
explicit failure( const string &s );
};
-class SQLITEXX_LIBEXPORT sql_error : public failure {
+class SQLITEXX_LIBEXPORT sql_error : public failure
+{
string m_q;
public:
@@ -60,12 +61,12 @@ class SQLITEXX_LIBEXPORT sql_error : public failure {
const string& query( ) const throw( );
};
-/*
-class SQLITEXX_LIBEXPORT db_locked : sql_error {
+class SQLITEXX_LIBEXPORT database_locked : public failure
+{
public:
- explicit db_locket( string &q );
+ database_locked( );
};
-*/
-}
+
+} // namespace sqlite3xx
#endif /* SQLITE3XX_EXCEPT_H */