Catch doesnt catch
Posted: Mon Mar 19, 2018 6:33 am
Very many cases, when catch doesnt catch exceptions. Context possible catch only in Finally (.
I do that
I do that
Code: Select all
bool ok=false
try
{
....
ok = true;
}
catch
{
ok = true
...
}
finally
{
if(!ok} throw new exception("unknown error")
}