245 |
} |
} |
246 |
} catch (Exception e) { |
} catch (Exception e) { |
247 |
EndTransaction(); |
EndTransaction(); |
248 |
throw e; |
throw; // re-throw |
249 |
} |
} |
250 |
EndTransaction(); |
EndTransaction(); |
251 |
if (i == -1) throw Exception("Unkown DB directory: " + toEscapedPath(Dir)); |
if (i == -1) throw Exception("Unkown DB directory: " + toEscapedPath(Dir)); |
282 |
return pDirs; |
return pDirs; |
283 |
} catch (Exception e) { |
} catch (Exception e) { |
284 |
EndTransaction(); |
EndTransaction(); |
285 |
throw e; |
throw; // re-throw |
286 |
} |
} |
287 |
} |
} |
288 |
|
|
391 |
} |
} |
392 |
} catch (Exception e) { |
} catch (Exception e) { |
393 |
EndTransaction(); |
EndTransaction(); |
394 |
throw e; |
throw; // re-throw |
395 |
} |
} |
396 |
EndTransaction(); |
EndTransaction(); |
397 |
|
|
428 |
ExecSql(sql.str(), toDbName(dirName)); |
ExecSql(sql.str(), toDbName(dirName)); |
429 |
} catch (Exception e) { |
} catch (Exception e) { |
430 |
EndTransaction(); |
EndTransaction(); |
431 |
throw e; |
throw; // re-throw |
432 |
} |
} |
433 |
|
|
434 |
EndTransaction(); |
EndTransaction(); |
451 |
RemoveDirectory(dirId); |
RemoveDirectory(dirId); |
452 |
} catch (Exception e) { |
} catch (Exception e) { |
453 |
EndTransaction(); |
EndTransaction(); |
454 |
throw e; |
throw; // re-throw |
455 |
} |
} |
456 |
|
|
457 |
EndTransaction(); |
EndTransaction(); |
554 |
sqlite3_finalize(pStmt); |
sqlite3_finalize(pStmt); |
555 |
} catch (Exception e) { |
} catch (Exception e) { |
556 |
EndTransaction(); |
EndTransaction(); |
557 |
throw e; |
throw; // re-throw |
558 |
} |
} |
559 |
|
|
560 |
EndTransaction(); |
EndTransaction(); |
591 |
ExecSql(sql.str(), dbName); |
ExecSql(sql.str(), dbName); |
592 |
} catch (Exception e) { |
} catch (Exception e) { |
593 |
EndTransaction(); |
EndTransaction(); |
594 |
throw e; |
throw; // re-throw |
595 |
} |
} |
596 |
|
|
597 |
EndTransaction(); |
EndTransaction(); |
636 |
ExecSql(sql.str()); |
ExecSql(sql.str()); |
637 |
} catch (Exception e) { |
} catch (Exception e) { |
638 |
EndTransaction(); |
EndTransaction(); |
639 |
throw e; |
throw; // re-throw |
640 |
} |
} |
641 |
|
|
642 |
EndTransaction(); |
EndTransaction(); |
680 |
DirectoryTreeWalk(Dir, &directoryCopier); |
DirectoryTreeWalk(Dir, &directoryCopier); |
681 |
} catch (Exception e) { |
} catch (Exception e) { |
682 |
EndTransaction(); |
EndTransaction(); |
683 |
throw e; |
throw; // re-throw |
684 |
} |
} |
685 |
|
|
686 |
EndTransaction(); |
EndTransaction(); |
701 |
ExecSql(sql.str(), Desc); |
ExecSql(sql.str(), Desc); |
702 |
} catch (Exception e) { |
} catch (Exception e) { |
703 |
EndTransaction(); |
EndTransaction(); |
704 |
throw e; |
throw; // re-throw |
705 |
} |
} |
706 |
EndTransaction(); |
EndTransaction(); |
707 |
|
|
850 |
} |
} |
851 |
} catch (Exception e) { |
} catch (Exception e) { |
852 |
EndTransaction(); |
EndTransaction(); |
853 |
throw e; |
throw; // re-throw |
854 |
} |
} |
855 |
EndTransaction(); |
EndTransaction(); |
856 |
|
|
895 |
return pInstrs; |
return pInstrs; |
896 |
} catch (Exception e) { |
} catch (Exception e) { |
897 |
EndTransaction(); |
EndTransaction(); |
898 |
throw e; |
throw; // re-throw |
899 |
} |
} |
900 |
} |
} |
901 |
|
|
938 |
RemoveInstrument(instrId); |
RemoveInstrument(instrId); |
939 |
} catch (Exception e) { |
} catch (Exception e) { |
940 |
EndTransaction(); |
EndTransaction(); |
941 |
throw e; |
throw; // re-throw |
942 |
} |
} |
943 |
EndTransaction(); |
EndTransaction(); |
944 |
FireInstrumentCountChanged(ParentDir); |
FireInstrumentCountChanged(ParentDir); |
972 |
i = GetInstrumentInfo(id); |
i = GetInstrumentInfo(id); |
973 |
} catch (Exception e) { |
} catch (Exception e) { |
974 |
EndTransaction(); |
EndTransaction(); |
975 |
throw e; |
throw; // re-throw |
976 |
} |
} |
977 |
EndTransaction(); |
EndTransaction(); |
978 |
|
|
1047 |
ExecSql(sql.str(), toDbName(Name)); |
ExecSql(sql.str(), toDbName(Name)); |
1048 |
} catch (Exception e) { |
} catch (Exception e) { |
1049 |
EndTransaction(); |
EndTransaction(); |
1050 |
throw e; |
throw; // re-throw |
1051 |
} |
} |
1052 |
EndTransaction(); |
EndTransaction(); |
1053 |
FireInstrumentNameChanged(Instr, toAbstractName(Name)); |
FireInstrumentNameChanged(Instr, toAbstractName(Name)); |
1090 |
ExecSql(sql.str()); |
ExecSql(sql.str()); |
1091 |
} catch (Exception e) { |
} catch (Exception e) { |
1092 |
EndTransaction(); |
EndTransaction(); |
1093 |
throw e; |
throw; // re-throw |
1094 |
} |
} |
1095 |
EndTransaction(); |
EndTransaction(); |
1096 |
FireInstrumentCountChanged(ParentDir); |
FireInstrumentCountChanged(ParentDir); |
1121 |
CopyInstrument(instrId, instrName, dstId, Dst); |
CopyInstrument(instrId, instrName, dstId, Dst); |
1122 |
} catch (Exception e) { |
} catch (Exception e) { |
1123 |
EndTransaction(); |
EndTransaction(); |
1124 |
throw e; |
throw; // re-throw |
1125 |
} |
} |
1126 |
EndTransaction(); |
EndTransaction(); |
1127 |
|
|
1186 |
ExecSql(sql.str(), Desc); |
ExecSql(sql.str(), Desc); |
1187 |
} catch (Exception e) { |
} catch (Exception e) { |
1188 |
EndTransaction(); |
EndTransaction(); |
1189 |
throw e; |
throw; // re-throw |
1190 |
} |
} |
1191 |
EndTransaction(); |
EndTransaction(); |
1192 |
FireInstrumentInfoChanged(Instr); |
FireInstrumentInfoChanged(Instr); |
1366 |
else directoryFinder.ProcessDirectory(Dir, DirId); |
else directoryFinder.ProcessDirectory(Dir, DirId); |
1367 |
} catch (Exception e) { |
} catch (Exception e) { |
1368 |
EndTransaction(); |
EndTransaction(); |
1369 |
throw e; |
throw; // re-throw |
1370 |
} |
} |
1371 |
EndTransaction(); |
EndTransaction(); |
1372 |
|
|
1386 |
else instrumentFinder.ProcessDirectory(Dir, DirId); |
else instrumentFinder.ProcessDirectory(Dir, DirId); |
1387 |
} catch (Exception e) { |
} catch (Exception e) { |
1388 |
EndTransaction(); |
EndTransaction(); |
1389 |
throw e; |
throw; // re-throw |
1390 |
} |
} |
1391 |
EndTransaction(); |
EndTransaction(); |
1392 |
|
|
1408 |
return result; |
return result; |
1409 |
} catch (Exception e) { |
} catch (Exception e) { |
1410 |
EndTransaction(); |
EndTransaction(); |
1411 |
throw e; |
throw; // re-throw |
1412 |
} |
} |
1413 |
} |
} |
1414 |
|
|
1424 |
ExecSql("UPDATE instruments SET instr_file=? WHERE instr_file=?", params); |
ExecSql("UPDATE instruments SET instr_file=? WHERE instr_file=?", params); |
1425 |
} catch (Exception e) { |
} catch (Exception e) { |
1426 |
EndTransaction(); |
EndTransaction(); |
1427 |
throw e; |
throw; // re-throw |
1428 |
} |
} |
1429 |
EndTransaction(); |
EndTransaction(); |
1430 |
|
|