Dominique LeBlond: see the example
public class MyException : Exception
{
public MyException ( string message ) : base ( message )
{
}
}
try
{
if(len>5)
throw new MyException("length cannot be > 5");
}
catch (MyException my)
{
Console.WriteLine(my.Message);
}
Output is:length cannot be > 5
I donot know how it come?
Can u tell me the sequence of processing of MyException in this example. I want to know where is base constructor