finally節内から例外がスローされていることを検出する方法はありますか?Javaでのfinally finally節の失敗
すなわち:
try {
// code that may or may not throw an exception
} finally {
SomeCleanupFunctionThatThrows();
// if currently executing an exception, exit the program,
// otherwise just let the exception thrown by the function
// above propagate
}
や例外の1あなたができる唯一のことを無視しています。 C++では、例外の1つを無視してterminate()を呼び出すことさえできません。他のほとんどの言語はjavaと同じ規則を使用します。
あなたはあまりにも速いです...あなたは私の答えをすくった – martinatime