J
Jay Dee
I have a query about throwing exceptions.
To throw an exception I type something like:
try
{
// do somthing
}
catch (ArgumentOutOfRangeException)
{
throw new Exception("My Exception");
}
And when the try section fales my excepton is thrown and if not court
elswair will display when debuging and hi-light the line:
throw new Exception("My Exception");
but when using other classes like in the microsoft framework library
the line that is hi-lighted is the line that called the class
containing that exception.
What I am trying to say is that when my exception is thrown I no that
it has bean thrown but I don't know what corsed it to throw, so it is
fearly useles being there.
Any sugestions.
Thanks, Jay Dee.
To throw an exception I type something like:
try
{
// do somthing
}
catch (ArgumentOutOfRangeException)
{
throw new Exception("My Exception");
}
And when the try section fales my excepton is thrown and if not court
elswair will display when debuging and hi-light the line:
throw new Exception("My Exception");
but when using other classes like in the microsoft framework library
the line that is hi-lighted is the line that called the class
containing that exception.
What I am trying to say is that when my exception is thrown I no that
it has bean thrown but I don't know what corsed it to throw, so it is
fearly useles being there.
Any sugestions.
Thanks, Jay Dee.