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

Method TransactionScope

libraries/lib-transactions/TransactionScope.cpp:17–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15TransactionScopeImpl::~TransactionScopeImpl() = default;
16
17TransactionScope::TransactionScope(
18 AudacityProject &project, const char *name)
19: mName(name)
20{
21 mpImpl = Factory::Call(project);
22 if (!mpImpl)
23 return;
24
25 mInTrans = mpImpl->TransactionStart(mName);
26 if ( !mInTrans )
27 // To do, improve the message
28 throw SimpleMessageBoxException( ExceptionType::Internal,
29 XO("Database error. Sorry, but we don't have more details."),
30 XO("Warning"),
31 "Error:_Disk_full_or_not_writable"
32 );
33}
34
35TransactionScope::~TransactionScope()
36{

Callers

nothing calls this directly

Calls 3

CallClass · 0.85
TransactionStartMethod · 0.80

Tested by

no test coverage detected