洛央下
2015-08-28 20:49
java.lang.RuntimeException: com.imooc.test.DrunkException
at com.imooc.test.ChainTest.test2(ChainTest.java:28)
at com.imooc.test.ChainTest.main(ChainTest.java:14)
Caused by: com.imooc.test.DrunkException
at com.imooc.test.ChainTest.test1(ChainTest.java:20)
at com.imooc.test.ChainTest.test2(ChainTest.java:24)
... 1 more
你没在方法名后面加上throws声明抛出自定义异常!!!
Java入门第三季
409792 学习 · 4340 问题
相似问题