From 3a7e2b9a7bde4682f2273022e9d2ddecd7e5e3b8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 02:42:43 +0000 Subject: Reshuffle and add new exceptions --- libsqlitepp/sqlite-selectcommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsqlitepp/sqlite-selectcommand.cpp') diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp index 9974647..ca72a9f 100644 --- a/libsqlitepp/sqlite-selectcommand.cpp +++ b/libsqlitepp/sqlite-selectcommand.cpp @@ -37,7 +37,7 @@ namespace SQLite { h.null(); return; case SQLITE_BLOB: - throw std::runtime_error("Blobs not supported"); + throw DB::ColumnTypeNotSupported(); } } @@ -73,7 +73,7 @@ SQLite::SelectCommand::fetch() case SQLITE_DONE: return false; default: - throw Error(sqlite3_errmsg(c->db)); + throw Error(c->db); } } -- cgit v1.2.3