class Computer
{
private int state=3;
public void run()throws LanPingException,MaoYanException
{
if(state==2)
throw new LanPingException("蓝屏了");
if(state==3)
throw new MaoYanException("冒烟了");
System.out.println("run");
}
public void reset()
{
state=1;
System.out.println("重启");
}
}