Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.06 KB

BeginTransactionBeforeTryCatch.md

File metadata and controls

30 lines (20 loc) · 1.06 KB

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