Do not raise reserved exception types
TOC
Collapse the table of content
Expand the table of content

Do not raise reserved exception types

TypeName

DoNotRaiseReservedExceptionTypes

CheckId

CA2201

Category

Microsoft.Usage

Breaking Change

Breaking

A method raises an exception type that is too general or that is reserved by the runtime.

The following exception types are too general to provide sufficient information to the user:

The following exception types are reserved and should be thrown only by the common language runtime:

To fix a violation of this rule, change the type of the thrown exception to a specific type that is not one of the reserved types.

Do not exclude a warning from this rule.

Community Additions

ADD
Show:
© 2016 Microsoft