Class UncaughtExceptionHandler

Object
org.apache.spark.sql.pipelines.graph.UncaughtExceptionHandler
All Implemented Interfaces:
Thread.UncaughtExceptionHandler

public class UncaughtExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Uncaught exception handler which first calls the delegate and then calls the OnFailure function with the uncaught exception.
  • Constructor Details

  • 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

      public void uncaughtException(Thread t, Throwable e)
      Specified by:
      uncaughtException in interface Thread.UncaughtExceptionHandler