|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.util.DefaultErrorReporter
public class DefaultErrorReporter
An implementation of the ErrorReporter interface that just writes everything to System.out.
The default implementation to be used as convenience code for when the end user has not supplied their own instance. By default, any class in this repository that can be given an instance of the handler will use this class, if none are given.
Constructor Summary | |
---|---|
DefaultErrorReporter()
Creates a new, default instance of the reporter |
Method Summary | |
---|---|
void |
errorReport(java.lang.String msg,
java.lang.Exception e)
Notification of a recoverable error. |
void |
fatalErrorReport(java.lang.String msg,
java.lang.Exception e)
Notification of a non-recoverable error that halts the entire system. |
static ErrorReporter |
getDefaultReporter()
Fetch the common global instance of the reporter. |
void |
messageReport(java.lang.String msg)
Notification of an informational message from the system. |
void |
warningReport(java.lang.String msg,
java.lang.Exception e)
Notification of a warning in the way the system is currently operating. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultErrorReporter()
Method Detail |
---|
public static ErrorReporter getDefaultReporter()
public void messageReport(java.lang.String msg)
messageReport
in interface ErrorReporter
msg
- The general message string to report. May be nullpublic void warningReport(java.lang.String msg, java.lang.Exception e)
warningReport
in interface ErrorReporter
msg
- The text of the message to be displayede
- The exception that caused this warning. May be nullpublic void errorReport(java.lang.String msg, java.lang.Exception e)
errorReport
in interface ErrorReporter
msg
- The text of the message to be displayede
- The exception that caused this warning. May be nullpublic void fatalErrorReport(java.lang.String msg, java.lang.Exception e)
fatalErrorReport
in interface ErrorReporter
msg
- The text of the message to be displayede
- The exception that caused this warning. May be null
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |