@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
|Constructor and Description|
Basic exception handler -logs simple exceptions, then continues.
Create an instance delegating to the supplied handler if the exception is considered "simple".
public HadoopUncaughtExceptionHandler(Thread.UncaughtExceptionHandler delegate)
delegate- a delegate exception handler.
public void uncaughtException(Thread thread, Throwable exception)
thread- thread that failed
exception- the raised exception
Copyright © 2022 Apache Software Foundation. All rights reserved.