-
-
Couldn't load subscription status.
- Fork 273
Closed
Labels
Description
Rosylnator Analyzers 4.12.7:
Steps to Reproduce:
Create a custom exception, use the custom exception in a try/catch, where you don't use the exception.
Here is an example project:
https://github.com/merlinschumacher/Roslyn-RCS1140-Issue
With 4.12.6 the issue isn't present.
Actual Behavior:
This triggers an argument null exception. Independent of the presence of an XML comment for the exception:
try
{
Method2();
}
catch
{
throw new MyCustomException("MyCustomException");
}This works (passing the caught exception is not necessary):
try
{
Method2();
}
catch (Exception ex)
{
throw new MyCustomException("MyCustomException");
}Expected Behavior:
To create an analyzer message notifying me of the possibly missing XML comment.