This project is read-only.

Guide

Settings

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
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

Roadmap

  • 0.6.x: Make extension stable and current features work without issues
  • 1.x.x: New features,,,,

Last edited Jan 5, 2015 at 6:40 PM by rsuter, version 25