国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

異常捕獲

2019-11-10 17:45:07
字體:
來源:轉載
供稿:網友
/** * @date 2016年8月1日 下午5:43:23 */class FatherException extends Exception {    public FatherException() {        super();    }    public FatherException(Throwable arg0) {        super(arg0);    }}/** * @date 2016年8月1日 下午5:43:23 * @author zhangxingan */class grandFatherException extends Exception {    public grandFatherException() {        super();    }    public grandFatherException(Throwable arg0) {        super(arg0);    }}class SonException extends FatherException {    public SonException() {        super();    }    public SonException(Throwable arg0) {        super(arg0);    }}class A1 {    public static void throwE() throws FatherException{        A2.throwE();    }}class A2 {    public static void throwE() throws FatherException{        A3.throwE();    }}class A3 {    public static void throwE() throws FatherException{        throw new SonException();    }}public class FatherExceptionTest {    public static void main(String[] args) throws Exception {        try {            try {                try {                    throw new SonException();                } catch (Exception a) {                    System.out.PRintln("Caught FatherException");                    throw new FatherException(a);                }            } catch (Exception e) {                // TODO: handle exception                throw new grandFatherException(e);            }                    } catch (Exception s) {            System.out.println("Caught SonExceptioneze");            return;        } finally {            System.out.println("Hello World!");        }    }}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 贵州省| 碌曲县| 象山县| 尚义县| 北流市| 图片| 清水县| 吉首市| 佛冈县| 阳高县| 新化县| 江津市| 化隆| 江都市| 永州市| 潮州市| 巫溪县| 衡山县| 伊川县| 淄博市| 桑植县| 兖州市| 西峡县| 祁东县| 富裕县| 塔城市| 平远县| 乌拉特中旗| 青岛市| 定日县| 家居| 金沙县| 呼玛县| 巴中市| 永康市| 汾西县| 尼勒克县| 寻乌县| 富锦市| 喀什市| 武宣县|