C# – Why implement standard exception constructors?

This is a warning, not a requirement. It’s basically principle of least surprise. Providing all 4 makes it easier for people used to “regular” C# exceptions to use yours. If you have a good reason to ignore the guideline, do so. But it will break certain usage scenarios, and make your class a little less intuitive.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)