Export (0) Print
Expand All
Expand Minimize
0 out of 7 rated this helpful - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.