File tree 1 file changed +6
-2
lines changed
src/Microsoft.Health.Fhir.Core/Extensions
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,13 @@ public static bool IsRequestEntityTooLarge(this Exception e)
42
42
return e is RequestEntityTooLargeException || e ? . InnerException is RequestEntityTooLargeException ;
43
43
}
44
44
45
- public static bool IsCompletedTransactionException ( this InvalidOperationException ioe )
45
+ /// <summary>
46
+ /// Determines whether the exception if caused by a C# SQL Transaction already committed.
47
+ /// </summary>
48
+ /// <param name="e">The exception</param>
49
+ public static bool IsCompletedTransactionException ( this InvalidOperationException e )
46
50
{
47
- return ioe ? . Message ? . Contains ( _completedSqlTransactionError , StringComparison . OrdinalIgnoreCase ) ?? false ;
51
+ return e ? . Message ? . Contains ( _completedSqlTransactionError , StringComparison . OrdinalIgnoreCase ) ?? false ;
48
52
}
49
53
}
50
54
}
You can’t perform that action at this time.
0 commit comments