mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2024-12-13 05:35:39 +02:00
717 B
717 B
There is no Try-Exception block after the start of the transaction
There should be no executable code between begin transaction and try, the try operator was not found after calling begin transaction
Noncompliant Code Example
BeginTransaction();
CommitTransaction();
Compliant Solution
BeginTransaction();
Try
// ...
CommitTransaction();
Except
// ...
RollbackTransaction();
// ...
Raise;
EndTry;