A
ad
I throw a exception in codes:
But the err.Message is all the some whether the error is thrown or not
How can I throw an error with a particular
try
{
if (Checked())
{
throw (new Exception());
}
do something.....
}
catch (Exception err)
{
Label1.Text=err.Message;
}
But the err.Message is all the some whether the error is thrown or not
How can I throw an error with a particular
try
{
if (Checked())
{
throw (new Exception());
}
do something.....
}
catch (Exception err)
{
Label1.Text=err.Message;
}