public class HoneybadgerUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
| Modifier and Type | Field and Description |
|---|---|
protected ConfigContext |
config |
protected org.slf4j.Logger |
logger |
protected NoticeReporter |
reporter |
| Constructor and Description |
|---|
HoneybadgerUncaughtExceptionHandler() |
HoneybadgerUncaughtExceptionHandler(ConfigContext config) |
| Modifier and Type | Method and Description |
|---|---|
static void |
registerAsUncaughtExceptionHandler()
Use
HoneybadgerUncaughtExceptionHandler
as the error handler for the current thread. |
static void |
registerAsUncaughtExceptionHandler(ConfigContext configContext)
Use
HoneybadgerUncaughtExceptionHandler
as the error handler for the current thread. |
static void |
registerAsUncaughtExceptionHandler(ConfigContext configContext,
java.lang.Thread t)
Use
HoneybadgerUncaughtExceptionHandler
as the error handler for the specified thread. |
static void |
registerAsUncaughtExceptionHandler(java.lang.Thread t)
Use
HoneybadgerUncaughtExceptionHandler
as the error handler for the specified thread. |
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
protected ConfigContext config
protected NoticeReporter reporter
protected org.slf4j.Logger logger
public HoneybadgerUncaughtExceptionHandler()
public HoneybadgerUncaughtExceptionHandler(ConfigContext config)
public void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandlerpublic static void registerAsUncaughtExceptionHandler()
HoneybadgerUncaughtExceptionHandler
as the error handler for the current thread.public static void registerAsUncaughtExceptionHandler(ConfigContext configContext)
HoneybadgerUncaughtExceptionHandler
as the error handler for the current thread.configContext - configuration context for Honeybadger setuppublic static void registerAsUncaughtExceptionHandler(java.lang.Thread t)
HoneybadgerUncaughtExceptionHandler
as the error handler for the specified thread.t - thread to register handler forpublic static void registerAsUncaughtExceptionHandler(ConfigContext configContext, java.lang.Thread t)
HoneybadgerUncaughtExceptionHandler
as the error handler for the specified thread.configContext - configuration context for Honeybadger setupt - thread to register handler for