C# Language Exceptions


Example

Add 'exception' as a suffix

Custom exception names should be suffixed with "-Exception".

Below are correctly named exceptions:

public class MyCustomException : Exception
public class FooException : Exception