public class SamebugNotifier extends Object implements INotifier
The Samebug Notifier class lets you to instantiate a notifier with custom configuration without the need of configuration files. Also, it makes explicit error sending possible.
| Constructor and Description |
|---|
SamebugNotifier()
Create a notifier with the default configuration
|
SamebugNotifier(Configuration config)
Create a notifier with the specified configuration.
|
SamebugNotifier(String appKey)
Create a notifier with only the application key set.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration() |
UUID |
notify(String message,
Throwable throwable)
Notify Samebug about an exception
|
UUID |
notify(String message,
Throwable throwable,
Date timestamp)
Notify Samebug about an exception
|
UUID |
notify(String message,
ThrowableProxy throwable)
Notify Samebug about an exception
|
UUID |
notify(String message,
ThrowableProxy throwable,
Date timestamp)
Notify Samebug about an exception
|
public SamebugNotifier()
throws NoConfigFileException,
MultipleConfigFileException,
BadAppKey,
BadServerAddress
public SamebugNotifier(String appKey) throws BadAppKey
BadAppKeypublic SamebugNotifier(Configuration config)
public Configuration getConfiguration()
public UUID notify(String message, Throwable throwable) throws NotifierException
INotifiernotify in interface INotifiermessage - custom message describing the eventthrowable - the caught exceptionNotifierExceptionpublic UUID notify(String message, ThrowableProxy throwable) throws NotifierException
INotifiernotify in interface INotifiermessage - custom message describing the eventthrowable - proxy for the caught exceptionNotifierExceptionpublic UUID notify(String message, Throwable throwable, Date timestamp) throws NotifierException
INotifiernotify in interface INotifiermessage - custom message describing the eventthrowable - the caught exceptiontimestamp - the time of occurrenceNotifierExceptionpublic UUID notify(String message, ThrowableProxy throwable, Date timestamp) throws NotifierException
INotifiernotify in interface INotifiermessage - custom message describing the eventthrowable - proxy for the caught exceptiontimestamp - the time of occurrenceNotifierExceptionCopyright © 2014. All rights reserved.