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
denkaiPosted Dec 8, 2004, 10:32 AM
amit_gupta14Posted Dec 8, 2004, 10:12 AM
denkaiPosted Dec 8, 2004, 10:02 AM
amit_gupta14Posted Dec 8, 2004, 9:35 AM
denkaiPosted Dec 8, 2004, 9:21 AM
bilnaadPosted Dec 8, 2004, 6:28 AM