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

bilnaadRank #2,169 · 655 pointsPosted Dec 8, 2004, 1:28 AM EST
denkai58 pointsPosted Dec 8, 2004, 4:21 AM EST
amit_gupta14109 pointsPosted Dec 8, 2004, 4:35 AM EST
denkai58 pointsPosted Dec 8, 2004, 5:02 AM EST
amit_gupta14109 pointsPosted Dec 8, 2004, 5:12 AM EST
denkai58 pointsPosted Dec 8, 2004, 5:32 AM EST