求救,为什么会出现这个错误?? public class Test {
public static void main(String args[]) {
Test test = new Test();
try {
test.method1();
} catch (SomeException e) {
e.printStackTrace();
}
}
public void method1() throws SomeException{method2();}
public void method2() throws SomeException{method3();}
public void method3() throws SomeException{
throw new SomeException("SomeException occur in method3");
}
}