public final class LoggingUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
Constructor and Description |
---|
LoggingUncaughtExceptionHandler(Logger log)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
Method invoked when the given thread terminates due to the given uncaught exception.
|
private final Logger log
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 exception