Code Analysis ReferenceAnalyzersRCS1044On this pageRCS1044: Remove original exception from throw statementPropertiesPropertyValueDefault SeverityWarningMinimum language version-ExamplesExample #1diagnostic.cstry{ Foo();}catch (Exception ex){ throw ex;}fix.cstry{ Foo();}catch (Exception ex){ throw;}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers