都扔在catch和finally塊異常問題: class MyExc1 extends Exception {}
class MyExc2 extends Exception {}
class MyExc3 extends MyExc2 {}
public class C1 {
public static void main(String[] args) throws Excep
據我瞭解,rethrows實質上從一個單一的聲明/定義創建兩個函數,就像這樣: func f(_ c:() throws -> Void) rethrows { try c()}
// has the same effect as declaring two seperate functions, with the same name:
func g(_ c:() throws -> Vo