Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Do not raise reserved exception types
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:
© 2015 Microsoft