📅  最后修改于: 2022-03-11 14:52:03.314000             🧑  作者: Mango
boolean flag = false;
while(!flag)
{
//make the loop break, if no exception caught
flag = true;
try{
}
catch{
//make the loop repeat
flag = false;
}
}