Permalink
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (34 sloc) 983 Bytes

RCS1194: Implement exception constructors

Property Value
Id RCS1194
Category Design
Default Severity Warning
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public class FooException : Exception // RCS1194
{
}

Code with Fix

public class FooException : Exception
{
    public FooException() : base()
    {
    }

    public FooException(string message) : base(message)
    {
    }

    public FooException(string message, Exception innerException) : base(message, innerException)
    {
    }
}

See Also

(Generated with DotMarkdown)