public class HoneybadgerReporter extends java.lang.Object implements NoticeReporter
Throwable classes to the Honeybadger API.APPLICATION_PACKAGE_PROP_KEY, DEFAULT_API_HOST, DEFAULT_API_PROTO, DEFAULT_FEEDBACK_FORM_TEMPLATE_PATH, DISPLAY_FEEDBACK_FORM_KEY, FEEDBACK_FORM_TEMPLATE_PATH_KEY, HONEYBADGER_API_KEY_SYS_PROP_KEY, HONEYBADGER_EXCLUDED_CLASSES_SYS_PROP_KEY, HONEYBADGER_EXCLUDED_PARAMS_SYS_PROP_KEY, HONEYBADGER_EXCLUDED_PROPS_SYS_PROP_KEY, HONEYBADGER_URL_SYS_PROP_KEY, READ_API_KEY_PROP_KEY| Constructor and Description |
|---|
HoneybadgerReporter() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.URI |
honeybadgerUrl()
Finds the Honeybadger endpoint to send errors to.
|
NoticeReportResult |
reportError(java.lang.Throwable error)
Send any Java
Throwable to the Honeybadger error
reporting interface. |
NoticeReportResult |
reportError(java.lang.Throwable error,
java.lang.Object request)
Send any Java
Throwable to the Honeybadger error
reporting interface. |
protected NoticeReportResult |
submitError(java.lang.Throwable error,
Request request) |
protected boolean |
supportsHttpServletRequest() |
protected boolean |
supportsPlayHttpRequest() |
public NoticeReportResult reportError(java.lang.Throwable error)
Throwable to the Honeybadger error
reporting interface.reportError in interface NoticeReportererror - error to reportpublic NoticeReportResult reportError(java.lang.Throwable error, java.lang.Object request)
Throwable to the Honeybadger error
reporting interface.
Currently only HttpServletRequest objects
are supported as request properties.reportError in interface NoticeReportererror - error to reportrequest - Object to parse for request propertiesprotected boolean supportsHttpServletRequest()
protected boolean supportsPlayHttpRequest()
protected NoticeReportResult submitError(java.lang.Throwable error, Request request)
public static java.net.URI honeybadgerUrl()