-
Notifications
You must be signed in to change notification settings - Fork 30
Home
Rico Suter edited this page Nov 20, 2015
·
3 revisions
Open the menu ReSharper / Options... / Exceptional to configure the extension.
Optional exceptions
Exceptions which are not required to be documented or caught. These occurrences are highlighted as R# hint.
- One exception per line
- Pattern:
FullExceptionName,Condition
- Conditions
- Always: Always optional
- InvocationOnly: Optional when thrown from called method or property
- ThrowOnly: Optional only when directly thrown inside method or property
- Conditions
Default:
-- Contracts
System.ArgumentException,InvocationOnly
System.InvalidOperationException,InvocationOnly
System.FormatException,InvocationOnly
System.NotSupportedException,InvocationOnly
System.NotImplementedException,ThrowOnly
-- Unit testing
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException,InvocationOnly
Optional method exceptions
Exceptions which are optional and thrown from a given method or property. These occurrences are highlighted as R# hint.
- One exception per line
- Pattern:
FullMethodOrPropertyName,FullExceptionName
Default:
System.Collections.IDictionary.Add,System.NotSupportedException
System.Nullable.Value,System.InvalidOperationException
System.Windows.DependencyObject.GetValue,System.InvalidOperationException
System.Windows.DependencyObject.SetValue,System.InvalidOperationException
System.Console.WriteLine,System.IO.IOException
- 0.6.x: Make extension stable and current features work without issues
- 1.x.x: New features...