What are industry standard best practices for implementing custom exceptions in C#?
The standard for creating custom exceptions is to derive from Exception. You can then introduce your own properties/methods and overloaded constructors (if applicable). Here is a basic example of a custom ConnectionFailedException which takes in an extra parameter which is specific to the type of exception. [Serializable] public class ConnectionFailedException : Exception { public ConnectionFailedException(string … Read more