重複の可能性:
Java: グローバル例外ハンドラ
私は次のようなことを考えました:
public static void main(String[] args) {
try {
startOfMyProg();
} catch (RuntimeException e) {
log.error(e.toString());
// Maybe rethrow it so i can see it in the console?
}
}
それは簡単な解決策です、私は知っています。多分誰かがより良いものを知っていますか?
よろしく && tia noircc