Package backtraceio.library.models
Class BacktraceExceptionHandler
- java.lang.Object
-
- backtraceio.library.models.BacktraceExceptionHandler
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
public class BacktraceExceptionHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandlerBacktrace 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 voidenable(BacktraceClient client)Enable catching unexpected exceptions by BacktraceClientstatic voidsetCustomAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)voiduncaughtException(java.lang.Thread thread, java.lang.Throwable throwable)Called when a thread stops because of an uncaught exception
-
-
-
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:
uncaughtExceptionin interfacejava.lang.Thread.UncaughtExceptionHandler- Parameters:
thread- thread that is about to exitthrowable- uncaught exception
-
-