I do that
Code: Select all
bool ok=false
try
{
....
ok = true;
}
catch
{
ok = true
...
}
finally
{
if(!ok} throw new exception("unknown error")
}
Code: Select all
bool ok=false
try
{
....
ok = true;
}
catch
{
ok = true
...
}
finally
{
if(!ok} throw new exception("unknown error")
}
Users browsing this forum: No registered users and 2 guests