java.lang.Thread.UncaughtExceptionHandler@Public
@Evolving
public class HadoopUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.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 | Description |
|---|---|
HadoopUncaughtExceptionHandler() |
Basic exception handler -logs simple exceptions, then continues.
|
HadoopUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler delegate) |
Create an instance delegating to the supplied handler if
the exception is considered "simple".
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
uncaughtException(java.lang.Thread thread,
java.lang.Throwable exception) |
Uncaught exception handler.
|
public HadoopUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler delegate)
delegate - a delegate exception handler.public HadoopUncaughtExceptionHandler()
public void uncaughtException(java.lang.Thread thread,
java.lang.Throwable exception)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandlerthread - thread that failedexception - the raised exceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.