エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
try-catch-finally、try-with-resources、そして発生した例外たち - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
try-catch-finally、try-with-resources、そして発生した例外たち - Qiita
public class Test { public static void main (String[] args) throws Exception { try { run(); } cat... public class Test { public static void main (String[] args) throws Exception { try { run(); } catch(Exception e) { printSuppressedExceptions(e, "-"); } } public static void printSuppressedExceptions(Throwable t, String s) { System.out.println(s + t + " suppressed " + t.getSuppressed().length + " exception/exceptions."); if(t.getSuppressed().length != 0) { for (Throwable ts : t.getSuppressed()) { S