Class UncaughtExceptionHandler
Object
org.apache.spark.sql.pipelines.graph.UncaughtExceptionHandler
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
Uncaught exception handler which first calls the delegate and then calls the
OnFailure function with the uncaught exception.
-
Constructor Summary
ConstructorsConstructorDescriptionUncaughtExceptionHandler
(scala.Option<Thread.UncaughtExceptionHandler> delegate, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addHandler
(Thread thread, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure) Sets a handler which calls 'onFailure' function with the uncaught exception.void
uncaughtException
(Thread t, Throwable e)
-
Constructor Details
-
UncaughtExceptionHandler
public UncaughtExceptionHandler(scala.Option<Thread.UncaughtExceptionHandler> delegate, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure)
-
-
Method Details
-
addHandler
public static void addHandler(Thread thread, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure) Sets a handler which calls 'onFailure' function with the uncaught exception. If the thread already has a uncaught exception handler, it will be called first before calling the 'onFailure' function.- Parameters:
thread
- (undocumented)onFailure
- (undocumented)
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-