Skip to content

Improve "more specific exception" and "exception should only be thrown by the CLR" warnings #4

@zwitbaum

Description

@zwitbaum

Please show the warning message "A more specific exception should be used." as well as the "The exception should only be thrown by the CLR" only for exceptions described in the rule CA2201: Do not raise reserved exception types.

Please add an information to the rule, e.g. " (CA2201)" to the warning message to provide more information for reason of the warning.

For other non-specific exception types like e.g. WarningException please show a hint message to suggest the user to throw a more specific exception like described in CA2201.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions