MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / raiseDBError_

Function raiseDBError_

src/openms/source/FORMAT/OMSFileStore.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 constexpr int version_number = 5; // increase this whenever the DB schema changes!
26
27 void raiseDBError_(const String& error, int line, const char* function,
28 const String& context, const String& query)
29 {
30 String msg = context + ": " + error;
31 if (!query.empty())
32 {
33 msg += String("\nQuery was: ") + query;
34 }
35 throw Exception::FailedAPICall(__FILE__, line, function, msg);
36 }
37
38 bool execAndReset(SQLite::Statement& query, int expected_modifications)
39 {

Callers 3

OMSFileLoadMethod · 0.85
storeCVTerm_Method · 0.85

Calls 2

StringClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected