Package org.xj3d.ui.construct
Class SystemErrorReporter
java.lang.Object
org.xj3d.ui.construct.SystemErrorReporter
- All Implemented Interfaces:
org.j3d.util.ErrorReporter
An implementation of the ErrorReporter interface that writes all reports
to System.out and can be configured to limit the report types that will
be produced.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, default instance of the reporterSystemErrorReporter(boolean logMessage, boolean logWarning, boolean logError, boolean logFatalError) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiderrorReport(String msg, Throwable e) Notification of a recoverable error.voidfatalErrorReport(String msg, Throwable e) Notification of a non-recoverable error that halts the entire system.voidmessageReport(String msg) Notification of an informational message from the system.voidpartialReport(String msg) Notification of an partial message from the system.voidwarningReport(String msg, Throwable e) Notification of a warning in the way the system is currently operating.
-
Constructor Details
-
SystemErrorReporter
public SystemErrorReporter()Creates a new, default instance of the reporter -
SystemErrorReporter
public SystemErrorReporter(boolean logMessage, boolean logWarning, boolean logError, boolean logFatalError) Constructor- Parameters:
logMessage- Set whether messages should be loggedlogWarning- Set whether warnings should be loggedlogError- Set whether errors should be loggedlogFatalError- Set whether fatal errors should be logged
-
-
Method Details
-
partialReport
Notification of an partial message from the system. When being written out to a display device, a partial message does not have a line termination character appended to it, allowing for further text to appended on that same line.- Specified by:
partialReportin interfaceorg.j3d.util.ErrorReporter- Parameters:
msg- The text of the message to be displayed
-
messageReport
Notification of an informational message from the system.- Specified by:
messageReportin interfaceorg.j3d.util.ErrorReporter- Parameters:
msg- The text of the message to be displayed
-
warningReport
Notification of a warning in the way the system is currently operating. This is a non-fatal, non-serious error.- Specified by:
warningReportin interfaceorg.j3d.util.ErrorReporter- Parameters:
msg- The text of the message to be displayede- The exception that caused this warning. May be null
-
errorReport
-
fatalErrorReport
Notification of a non-recoverable error that halts the entire system. After you receive this report the runtime system will no longer function.- Specified by:
fatalErrorReportin interfaceorg.j3d.util.ErrorReporter- Parameters:
msg- The text of the message to be displayede- The exception that caused this warning. May be null
-