Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 754 Bytes

RCS1194.md

File metadata and controls

43 lines (31 loc) · 754 Bytes

RCS1194: Implement exception constructors

Property Value
Id RCS1194
Category Design
Severity Warning

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)