From 1dcc640c490a6619eeba19a6bdb93c4ac8d5a6fc Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 6 Sep 2010 10:53:02 +0200 Subject: 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! --- include/sqlite3xx/except.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3-54-g00ecf