public static interface Errors.Plugins
Namespace for the plugins which Errors supports.
Modifier and Type | Interface and Description |
---|---|
static interface |
Errors.Plugins.Dialog
Plugin interface for
Errors.dialog() . |
static interface |
Errors.Plugins.Log
Plugin interface for
Errors.log() . |
static class |
Errors.Plugins.OnErrorThrowAssertion
An implementation of all of the
Errors plugins which throws an AssertionError on any exception. |
Modifier and Type | Method and Description |
---|---|
static void |
defaultDialog(Throwable error)
Default behavior of
Errors.dialog() is @{link Throwable#printStackTrace()} and JOptionPane.showMessageDialog . |
static void |
defaultLog(Throwable error)
Default behavior of
Errors.log() is @{link Throwable#printStackTrace()}. |
static void defaultLog(Throwable error)
Default behavior of Errors.log()
is @{link Throwable#printStackTrace()}.
static void defaultDialog(Throwable error)
Default behavior of Errors.dialog()
is @{link Throwable#printStackTrace()} and JOptionPane.showMessageDialog
.
The JOptionPane
part is called using reflection, and fails silently if swing isn’t available. The Throwable.printStackTrace
part works whether swing is available or not.