public class Samebug extends Object
| Constructor and Description |
|---|
Samebug() |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleUncaughtExceptions()
Install a default exception handler on the current thread, configured by
the property file named 'samebug.properties' in the classpath.
|
static void |
handleUncaughtExceptions(String applicationKey)
Install a default exception handler on the current thread, with the given
application key.
|
static void |
init() |
static void |
init(String applicationKey) |
static UUID |
notify(String message,
Throwable throwable)
Notify Samebug about an exception
|
static UUID |
notify(String message,
Throwable throwable,
Date timestamp)
Notify Samebug about an exception
|
static UUID |
notify(String message,
ThrowableProxy throwableProxy)
Notify Samebug about an exception
|
static UUID |
notify(String message,
ThrowableProxy throwableProxy,
Date timestamp)
Notify Samebug about an exception
|
public static void handleUncaughtExceptions()
public static void handleUncaughtExceptions(String applicationKey)
public static void init()
public static void init(String applicationKey)
public static UUID notify(String message, Throwable throwable) throws NotifierException
message - custom message describing the eventthrowable - the caught exceptionNotifierExceptionpublic static UUID notify(String message, Throwable throwable, Date timestamp) throws NotifierException
message - custom message describing the eventthrowable - the caught exceptiontimestamp - the time of occurrenceNotifierExceptionpublic static UUID notify(String message, ThrowableProxy throwableProxy) throws NotifierException
message - custom message describing the eventthrowableProxy - proxy for the caught exceptionNotifierExceptionpublic static UUID notify(String message, ThrowableProxy throwableProxy, Date timestamp) throws NotifierException
message - custom message describing the eventthrowableProxy - proxy for the caught exceptiontimestamp - the time of occurrenceNotifierExceptionCopyright © 2014. All rights reserved.