如何处理线程中的异常?
代码;
private static void main(String[] args) {
Login_WE h = new Login_WE();
initComponents();
h.setDefaul
...
psv.initComponents(){
throw new Unsupported Operation Exception (“Not supported yet.”);
}
输出;
线程“main”java.lang.unsupportedoperationexception中出现异常:尚不支持。在customside.tab.customsidetab.initcomponents(customsidetab。java:30)在customside.tab.customsidetab.main(customsidetab。java:22)c:\users\kachconrad\appdata\local\netbeans\cache\8.2\executionsnippets\run。xml:53:javareturned:1生成失败(总计time:2 seconds)
1条答案
按热度按时间cs7cruho1#
你可以这样做