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 SummaryConstructorsConstructorDescriptionUncaughtExceptionHandler(scala.Option<Thread.UncaughtExceptionHandler> delegate, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddHandler(Thread thread, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure) Sets a handler which calls 'onFailure' function with the uncaught exception.voiduncaughtException(Thread t, Throwable e) 
- 
Constructor Details- 
UncaughtExceptionHandlerpublic UncaughtExceptionHandler(scala.Option<Thread.UncaughtExceptionHandler> delegate, scala.Function1<Throwable, scala.runtime.BoxedUnit> onFailure) 
 
- 
- 
Method Details- 
addHandlerpublic 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:
- uncaughtExceptionin interface- Thread.UncaughtExceptionHandler
 
 
-