public class IcyExceptionHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandler
Constructor and Description |
---|
IcyExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getErrorMessage(java.lang.Throwable t,
boolean printStackTrace)
Returns the formatted error message for the specified
Throwable . |
static void |
handleException(PluginDescriptor pluginDesc,
java.lang.Throwable t,
boolean printStackStrace)
Handle the specified exception.
|
static void |
handleException(java.lang.String devId,
java.lang.Throwable t,
boolean printStackStrace)
Handle the specified exception.
|
static void |
handleException(java.lang.Throwable t,
boolean printStackStrace)
Handle the specified exception.
|
static void |
handlePluginException(PluginDescriptor pluginDesc,
java.lang.Throwable t,
boolean printStackStrace)
Deprecated.
|
static void |
init() |
static void |
report(PluginDescriptor plugin,
java.lang.String errorLog)
Report an error log from a given plugin to Icy web site.
|
static void |
report(PluginDescriptor plugin,
java.lang.String devId,
java.lang.String errorLog)
Report an error log from a given plugin or developer id to Icy web site.
|
static void |
report(java.lang.String errorLog)
Report an error log from the application to Icy web site.
|
static void |
report(java.lang.String devId,
java.lang.String errorLog)
Report an error log from a given plugin developer id to the Icy web site.
|
static void |
showErrorMessage(java.lang.Throwable t,
boolean printStackTrace)
Display the specified Throwable message in error output.
|
static void |
showErrorMessage(java.lang.Throwable t,
boolean printStackTrace,
boolean error)
Display the specified Throwable message in console.
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
public IcyExceptionHandler()
public static void init()
public static void showErrorMessage(java.lang.Throwable t, boolean printStackTrace)
public static void showErrorMessage(java.lang.Throwable t, boolean printStackTrace, boolean error)
public static java.lang.String getErrorMessage(java.lang.Throwable t, boolean printStackTrace)
Throwable
.true
the stack trace is also returned in the
message.public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
public static void handleException(PluginDescriptor pluginDesc, java.lang.Throwable t, boolean printStackStrace)
public static void handleException(java.lang.String devId, java.lang.Throwable t, boolean printStackStrace)
public static void handleException(java.lang.Throwable t, boolean printStackStrace)
@Deprecated public static void handlePluginException(PluginDescriptor pluginDesc, java.lang.Throwable t, boolean printStackStrace)
handleException(PluginDescriptor, Throwable, boolean)
instead.public static void report(PluginDescriptor plugin, java.lang.String devId, java.lang.String errorLog)
plugin
- The plugin responsible of the error or null
if the error comes from the
application or if we are not able to get the plugin descriptor.devId
- The developer id of the plugin responsible of the error when the plugin descriptor was
not found or null
if the error comes from the application.errorLog
- Error log to report.public static void report(PluginDescriptor plugin, java.lang.String errorLog)
plugin
- The plugin responsible of the error or null
if the error comes from the
application.errorLog
- Error log to report.public static void report(java.lang.String errorLog)
errorLog
- Error log to report.public static void report(java.lang.String devId, java.lang.String errorLog)
devId
- The developer id of the plugin responsible of the error or null
if the
error comes from the application.errorLog
- Error log to report.