L
Lei Jiang
For example :
try
{
....
}
catch(Exception e)
{
foo();
}
In foo(), how can I know if the code is within the catch block? e.g.:
void foo()
{
if (currently within a catch block) // <-- how could I do this?
{
}
else
{
}
}
Thanks!
try
{
....
}
catch(Exception e)
{
foo();
}
In foo(), how can I know if the code is within the catch block? e.g.:
void foo()
{
if (currently within a catch block) // <-- how could I do this?
{
}
else
{
}
}
Thanks!