我有以下尝试捕获:
try
{
while(run)
{
try
{
// try something
}
catch
{
// error catch 1
}
}
}
catch()
{
// error catch 2
}
finally
{
// DONE
}
根据我在抛出错误后的理解,error catch 1
它将再次在 while 循环中继续,直到run
为真,有时我的代码没有这样做,它会进入最终DONE
代码。我真的不知道这是怎么回事?