摘要: 自定义异常 课堂截图 代码 自定义异常 package com.exception.demo02; public class Test { //可能会存在异常的方法 static void test(int a) throws MyException{ System.out.println("传递的 阅读全文
posted @ 2021-12-31 21:09 梧桐灯下江楚滢 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 捕获和抛出异常 五个关键字 try catch finally throw throws 代码 package com.exception; public class test { public static void main(String[] args) { new test().test(1, 阅读全文
posted @ 2021-12-31 20:41 梧桐灯下江楚滢 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Error和Exception 课堂截图 什么是异常 异常的简单分类 异常体系结构 Error Exception 阅读全文
posted @ 2021-12-31 20:06 梧桐灯下江楚滢 阅读(18) 评论(0) 推荐(0) 编辑