@InterfaceAudience.Public @InterfaceStability.Evolving public class HadoopUncaughtExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Thread.setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)
in the main entry point.
The base class will always attempt to shut down the process if an Error
was raised; the behavior on a standard Exception, raised outside
process shutdown, is simply to log it.
(Based on the class YarnUncaughtExceptionHandler
)Constructor and Description |
---|
HadoopUncaughtExceptionHandler()
Basic exception handler -logs simple exceptions, then continues.
|
HadoopUncaughtExceptionHandler(Thread.UncaughtExceptionHandler delegate)
Create an instance delegating to the supplied handler if
the exception is considered "simple".
|
Modifier and Type | Method and Description |
---|---|
void |
uncaughtException(Thread thread,
Throwable exception)
Uncaught exception handler.
|
public HadoopUncaughtExceptionHandler(Thread.UncaughtExceptionHandler delegate)
delegate
- a delegate exception handler.public HadoopUncaughtExceptionHandler()
public void uncaughtException(Thread thread, Throwable exception)
uncaughtException
in interface Thread.UncaughtExceptionHandler
thread
- thread that failedexception
- the raised exceptionCopyright © 2022 Apache Software Foundation. All rights reserved.