Running the following query in SQL Server Management Studio gives the error below.
update table_name set is_active = 0 where id = 3
In my case, I was using System.Threading.CancellationTokenSource to cancel a SqlCommand but not handling the exception with catch (SqlException) { }
System.Threading.CancellationTokenSource
SqlCommand
catch (SqlException) { }