Class BacktraceExceptionHandler

  • All Implemented Interfaces:
    java.lang.Thread.UncaughtExceptionHandler

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void enable​(BacktraceClient client)
      Enable catching unexpected exceptions by BacktraceClient
      static void setCustomAttributes​(java.util.Map<java.lang.String,​java.lang.Object> attributes)  
      void uncaughtException​(java.lang.Thread thread, java.lang.Throwable throwable)
      Called when a thread stops because of an uncaught exception
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setCustomAttributes

        public static void setCustomAttributes​(java.util.Map<java.lang.String,​java.lang.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​(java.lang.Thread thread,
                                      java.lang.Throwable throwable)
        Called when a thread stops because of an uncaught exception
        Specified by:
        uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
        Parameters:
        thread - thread that is about to exit
        throwable - uncaught exception