trying to create my first few custom exceptions in c# I dont really understand the MSDN articles and why they have multiple instances of the same
public class CustomException : Exception
{
public CustomException(): base() { }
public CustomException(some message): base() { }
}
etc etc
What I'd like to do is something like the following
public class CustomException : Exception
{
public AlreadySentException() : base () { }
public InvalidMessageException() : base() { }
}
I just want to be able to call these exceptions.
Ideas / recommendations on how to implement this would be greatly appreciated.
Thanks