public final class Reporter extends Object
The GNU Lesser General Public License for details.| Modifier and Type | Class and Description |
|---|---|
static class |
Reporter.CustomAWTExceptionHandler
A class to handle AWT caught Exceptions
|
| Modifier and Type | Field and Description |
|---|---|
private static String |
AWT_HANDLER_PROPERTY
The system property name for registering AWT exceptions
|
private static List<ReporterListener> |
LISTENERS
The list of listeners
|
private static org.slf4j.Logger |
LOGGER
The log stream
|
private static String |
OUR_NAME
The name of the class to register for AWT exceptions
|
| Modifier | Constructor and Description |
|---|---|
private |
Reporter()
Enforce Singleton
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addReporterListener(ReporterListener li)
Add an Exception listener to the list of things wanting to know whenever
we capture an Exception
|
protected static void |
fireCapture(ReporterEvent ev)
Log a message.
|
static void |
grabAWTExecptions(boolean grab)
Sets the parent of any exception windows.
|
static void |
informUser(Object source,
LucidException prob)
Something has gone wrong.
|
static void |
informUser(Object source,
LucidRuntimeException prob)
Something has gone wrong.
|
static void |
informUser(Object source,
String message)
Something has happened.
|
static void |
informUser(Object source,
Throwable prob)
Something has gone wrong.
|
static void |
removeReporterListener(ReporterListener li)
Remove an Exception listener from the list of things wanting to know
whenever we capture an Exception
|
private static final String AWT_HANDLER_PROPERTY
private static final String OUR_NAME
private static final List<ReporterListener> LISTENERS
private static final org.slf4j.Logger LOGGER
public static void informUser(Object source, Throwable prob)
source - The cause of the problem, a Component if possible.prob - The Exception that was thrownpublic static void informUser(Object source, LucidException prob)
source - The cause of the problem, a Component if possible.prob - The Exception that was thrownpublic static void informUser(Object source, LucidRuntimeException prob)
source - The cause of the problem, a Component if possible.prob - The Exception that was thrownpublic static void informUser(Object source, String message)
source - The cause of the message, a Component if possible.message - The message to pass to the userpublic static void addReporterListener(ReporterListener li)
li - the interested listenerpublic static void removeReporterListener(ReporterListener li)
li - the disinterested listenerprotected static void fireCapture(ReporterEvent ev)
ev - the event to capturepublic static void grabAWTExecptions(boolean grab)
grab - whether to grab AWT exceptions or not