Package org.jboss.logmanager
Class LoggingUncaughtExceptionHandler
- java.lang.Object
-
- org.jboss.logmanager.LoggingUncaughtExceptionHandler
-
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
public final class LoggingUncaughtExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Logging uncaught exception handler.
-
-
Constructor Summary
Constructors Constructor Description LoggingUncaughtExceptionHandler(Logger log)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
uncaughtException(Thread t, Throwable e)
Method invoked when the given thread terminates due to the given uncaught exception.
-
-
-
Constructor Detail
-
LoggingUncaughtExceptionHandler
public LoggingUncaughtExceptionHandler(Logger log)
Create a new instance.- Parameters:
log
- the logger to log the uncaught exception to
-
-
Method Detail
-
uncaughtException
public void uncaughtException(Thread t, Throwable e)
Method invoked when the given thread terminates due to the given uncaught exception.Any exception thrown by this method will be ignored by the Java Virtual Machine.
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
- Parameters:
t
- the threade
- the exception
-
-