1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-13 05:35:39 +02:00
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/begin-transaction.md

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;

See