国产探花免费观看_亚洲丰满少妇自慰呻吟_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!");        }    }}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 营口市| 宁武县| 麻江县| 唐河县| 柳州市| 浪卡子县| 昌宁县| 杨浦区| 宕昌县| 云南省| 浑源县| 缙云县| 吴堡县| 寻乌县| 马龙县| 景洪市| 沁水县| 衡阳市| 临泽县| 杭锦后旗| 平南县| 德江县| 扶余县| 新巴尔虎右旗| 夏津县| 武陟县| 宿迁市| 克山县| 红桥区| 建水县| 青川县| 贺州市| 农安县| 新源县| 大悟县| 新源县| 香格里拉县| 黑水县| 曲阳县| 潜江市| 慈溪市|