Skip to content

Latest commit

 

History

History
8 lines (4 loc) · 631 Bytes

MA0013.md

File metadata and controls

8 lines (4 loc) · 631 Bytes

MA0013 - Types should not extend System.ApplicationException

Exceptions should derive from System.Exception or one of its subclasses in the System namespace.

From the .NET documentation:

You should derive custom exceptions from the System.Exception class rather than the ApplicationException class. You should not throw an ApplicationException exception in your code, and you should not catch an ApplicationException exception unless you intend to re-throw the original exception.