Violating transaction rules for the 'BeginTransaction' method (BeginTransactionBeforeTryCatch)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Error |
BSL OS |
Major |
Yes |
10 |
standard |
Description¶
The BeginTransaction method must be outside the TryCatch block immediately before the Try operator;
Sources¶
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:BeginTransactionBeforeTryCatch-off
// BSLLS:BeginTransactionBeforeTryCatch-on
Parameter for config¶
"BeginTransactionBeforeTryCatch": false