java.lang.Thread.UncaughtExceptionHandler
public final class LoggingUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
Constructor | Description |
---|---|
LoggingUncaughtExceptionHandler(Logger log) |
Create a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
Method invoked when the given thread terminates due to the given uncaught exception.
|
public LoggingUncaughtExceptionHandler(Logger log)
log
- the logger to log the uncaught exception topublic void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
Any exception thrown by this method will be ignored by the Java Virtual Machine.
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
t
- the threade
- the exceptionCopyright © 2018. All rights reserved.