Package backtraceio.library.models
Class BacktraceExceptionHandler
java.lang.Object
backtraceio.library.models.BacktraceExceptionHandler
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
Backtrace UncaughtExceptionHandler which will be invoked when a Thread abruptly terminates due
to an uncaught exception
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
enable
(BacktraceClient client) Enable catching unexpected exceptions by BacktraceClientstatic void
setCustomAttributes
(Map<String, Object> attributes) void
uncaughtException
(Thread thread, Throwable throwable) Called when a thread stops because of an uncaught exception
-
Method Details
-
setCustomAttributes
-
enable
Enable catching unexpected exceptions by BacktraceClient- Parameters:
client
- current Backtrace client instance which will be used to send information about exception
-
uncaughtException
Called when a thread stops because of an uncaught exception- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
- Parameters:
thread
- thread that is about to exitthrowable
- uncaught exception
-