Class BacktraceExceptionHandler

java.lang.Object
backtraceio.library.models.BacktraceExceptionHandler
All Implemented Interfaces:
Thread.UncaughtExceptionHandler

public class BacktraceExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Backtrace UncaughtExceptionHandler which will be invoked when a Thread abruptly terminates due to an uncaught exception
  • Method Details

    • setCustomAttributes

      public static void setCustomAttributes(Map<String,Object> attributes)
    • enable

      public static void enable(BacktraceClient client)
      Enable catching unexpected exceptions by BacktraceClient
      Parameters:
      client - current Backtrace client instance which will be used to send information about exception
    • uncaughtException

      public void uncaughtException(Thread thread, Throwable throwable)
      Called when a thread stops because of an uncaught exception
      Specified by:
      uncaughtException in interface Thread.UncaughtExceptionHandler
      Parameters:
      thread - thread that is about to exit
      throwable - uncaught exception