Permalink
707b719 Jun 13, 2018
1 contributor

Users who have contributed to this file

45 lines (35 sloc) 855 Bytes

RCS1044: Remove original exception from throw statement

Property Value
Id RCS1044
Category Maintainability
Default Severity Warning
Enabled by Default
Supports Fade-Out
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

try
{
    Foo();
}
catch (Exception ex)
{
    throw ex; // RCS1044
}

Code with Fix

try
{
    Foo();
}
catch (Exception ex)
{
    throw;
}

See Also

(Generated with DotMarkdown)