Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 610 Bytes

RCS1044.md

File metadata and controls

42 lines (32 loc) · 610 Bytes

RCS1044: Remove original exception from throw statement

Property Value
Id RCS1044
Category Maintainability
Severity Warning

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)