diff options
author | Andreas Baumann <Andreas.Baumann@eurospider.com> | 2010-09-06 10:53:02 +0200 |
---|---|---|
committer | Andreas Baumann <Andreas.Baumann@eurospider.com> | 2010-09-06 10:53:02 +0200 |
commit | 1dcc640c490a6619eeba19a6bdb93c4ac8d5a6fc (patch) | |
tree | fa6db7059152ef1f34ed925b39c92d068812cb75 /src/except.cpp | |
parent | 73a0556dca6ff98da2a77a34e75c5eec5969cd87 (diff) | |
download | sqlitexx-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 'src/except.cpp')
-rw-r--r-- | src/except.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/except.cpp b/src/except.cpp index 5ae357d..9a07334 100644 --- a/src/except.cpp +++ b/src/except.cpp @@ -44,11 +44,18 @@ sql_error::sql_error( const string &_what, const string &_q ) { } -sql_error::~sql_error( ) throw( ){ +sql_error::~sql_error( ) throw( ) +{ } -const string& sql_error::query( ) const throw( ) { +const string& sql_error::query( ) const throw( ) +{ return m_q; } +database_locked::database_locked( ) + : failure( "database locked" ) +{ +} + } /* namespace sqlite3xx */ |