summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SQLite3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Plugins/SQLite3.cpp')
-rw-r--r--lib/Plugins/SQLite3.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp
index f272bf5..3a67bad 100644
--- a/lib/Plugins/SQLite3.cpp
+++ b/lib/Plugins/SQLite3.cpp
@@ -178,6 +178,10 @@ void CSQLite3::Delete(const std::string& pUUID, const std::string& pUID)
"WHERE "DATABASE_COLUMN_UUID" = '"+pUUID+"' "
"AND "DATABASE_COLUMN_UID" = '"+pUID+"';");
}
+ else
+ {
+ throw std::string("CSQLite3::SetReported(): UUID is not found in DB.");
+ }
}
void CSQLite3::SetReported(const std::string& pUUID, const std::string& pUID)
@@ -189,6 +193,10 @@ void CSQLite3::SetReported(const std::string& pUUID, const std::string& pUID)
"WHERE "DATABASE_COLUMN_UUID" = '"+pUUID+"' "
"AND "DATABASE_COLUMN_UID" = '"+pUID+"';");
}
+ else
+ {
+ throw std::string("CSQLite3::SetReported(): UUID is not found in DB.");
+ }
}
const vector_database_rows_t CSQLite3::GetUIDData(const std::string& pUID)