| 15 | TransactionScopeImpl::~TransactionScopeImpl() = default; |
| 16 | |
| 17 | TransactionScope::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 | |
| 35 | TransactionScope::~TransactionScope() |
| 36 | { |
nothing calls this directly
no test coverage detected