We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Catching the Exception without declaring an exception variable
Exception
try { ... } catch (Exception) // '(Exception)' is redundant { ... }
is redundant and can be omitted:
try { ... } catch { ... }
Tip
A quick fix is available to remove the exception type declaration.
Note
The analyzer can be configured or deactivated in the ReSharper Options or Rider Settings dialog.