摘要: ==前言:==在Java中要想创建自定义异常,需要继承Throwable或者他的子类Exception。 class WrongInputException extends Exception { // 自定义的类 WrongInputException(String s) { super(s); 阅读全文
posted @ 2021-06-30 01:03  不将就鸭 阅读(216) 评论(0) 推荐(0)