We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4ea280 commit 2094b6aCopy full SHA for 2094b6a
src/main/java/chapter_07/code_25/UEHLogger.java
@@ -7,7 +7,6 @@
7
* 程序清单 7-25 将异常写入日志的 UncaughtExceptionHandler
8
*/
9
public class UEHLogger implements Thread.UncaughtExceptionHandler {
10
-
11
public void uncaughtException(Thread t, Throwable e) {
12
Logger logger = Logger.getAnonymousLogger();
13
logger.log(Level.SEVERE, "Thread terminated with exception: " + t.getName(), e);
0 commit comments