In C# how do I define my own Exceptions?
Definition:
public class CustomException : Exception { public CustomException(string Message) : base (Message) { } }
throwing:
throw new CustomException("Custom exception message");