1 public void func1() throws Exception1 { 2 // ... 3 } 4 5 public void func2() { 6 //... 7 try { 8 func1(); 9 } catch(Exception1 e) { 10 log.warn("...", e); //吐掉:try-catch打印日志 11 } 12 //... 13 }