Use new Exception constructors everywhere appropriate.

Fix compiling with C++11.
Added public assessor methods to Exception class.
Added more Exception constructors as needed.
This commit is contained in:
Douglas Heriot
2016-05-26 12:34:14 +10:00
parent 832e89440f
commit 2cd31179f4
5 changed files with 95 additions and 62 deletions

View File

@@ -31,8 +31,7 @@ Backup::Backup(Database& aDestDatabase,
apSrcDatabaseName);
if (NULL == mpSQLiteBackup)
{
std::string strerr = sqlite3_errmsg(aDestDatabase.getHandle());
throw SQLite::Exception(strerr);
throw SQLite::Exception(aDestDatabase.getHandle());
}
}