異常的簡單介紹

可自定義異常,如下所示: @SuppressWarnings("serial") public class MyException extends Exception{ private static final String exceptionMsg = "哎呀,我異常了"; public MyException(){ super(exceptionMsg); } public MyExcepti
相關文章
相關標籤/搜索