MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / MakeSqliteErrorMessage

Function MakeSqliteErrorMessage

src/lib/sqlite/Error.cxx:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <string>
9
10static std::string
11MakeSqliteErrorMessage(sqlite3 *db, const char *msg) noexcept
12{
13 return std::string(msg) + ": " + sqlite3_errmsg(db);
14}
15
16SqliteError::SqliteError(sqlite3 *db, int _code, const char *msg) noexcept
17 :std::runtime_error(MakeSqliteErrorMessage(db, msg)), code(_code) {}

Callers 1

SqliteErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected