急问try catch里捕获了异常之后怎么才能不退出程序?
static void Main(string[] args)
{
test t=new test();
while(true)
{
t.A();//怎么才能继续执行循环?
}
}
class test
{
public void A()
{
try
{
........
}
catch(Exception ee)
{
//出现错误了之后能不结束程序吗?
}
}
}
现在如果在A()出现错误catch之后就不执行Main里的循环了,请问有办法解决吗?