MCPcopy Create free account
hub / github.com/audacity/audacity / ThrowException

Method ThrowException

libraries/lib-project-file-io/DBConnection.cpp:341–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341[[noreturn]] void DBConnection::ThrowException( bool write ) const
342{
343 // Sqlite3 documentation says returned character string
344 // does NOT require freeing by us.
345 wxString dbName{ sqlite3_db_filename(mDB, "main") };
346 // Now we have an absolute path. Throw a message box exception that
347 // formats a helpful message just as used to be done before sqlite3
348 // was used for projects.
349 throw FileException{
350 write ? FileException::Cause::Write : FileException::Cause::Read,
351 dbName
352 };
353}
354
355int DBConnection::SafeMode(const char *schema /* = "main" */)
356{

Callers 5

GetDiskUsageMethod · 0.80
GetBlobMethod · 0.80
LoadMethod · 0.80
CommitMethod · 0.80
DeleteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected