-
- All Implemented Interfaces:
-
java.lang.Thread.UncaughtExceptionHandler
public class BacktraceExceptionHandler implements Thread.UncaughtExceptionHandler
Backtrace UncaughtExceptionHandler which will be invoked when a Thread abruptly terminates due to an uncaught exception
-
-
Field Summary
Fields Modifier and Type Field Description private final static Map<String, Object>
customAttributes
-
Method Summary
Modifier and Type Method Description static void
setCustomAttributes(Map<String, Object> attributes)
static void
enable(BacktraceClient client)
Enable catching unexpected exceptions by BacktraceClient void
uncaughtException(Thread thread, Throwable throwable)
Called when a thread stops because of an uncaught exception -
-
Method Detail
-
setCustomAttributes
static void setCustomAttributes(Map<String, Object> attributes)
-
enable
static void enable(BacktraceClient client)
Enable catching unexpected exceptions by BacktraceClient
- Parameters:
client
- current Backtrace client instancewhich will be used to send information about exception
-
uncaughtException
void uncaughtException(Thread thread, Throwable throwable)
Called when a thread stops because of an uncaught exception
- Parameters:
thread
- thread that is about to exitthrowable
- uncaught exception
-
-
-
-