Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.construct
Class SystemErrorReporter

java.lang.Object
  extended by org.xj3d.ui.construct.SystemErrorReporter
All Implemented Interfaces:
org.j3d.util.ErrorReporter

public class SystemErrorReporter
extends java.lang.Object
implements 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
SystemErrorReporter()
          Creates a new, default instance of the reporter
SystemErrorReporter(boolean logMessage, boolean logWarning, boolean logError, boolean logFatalError)
          Constructor
 
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.
 void messageReport(java.lang.String msg)
          Notification of an informational message from the system.
 void partialReport(java.lang.String msg)
          Notification of an partial message from the system.
 void setReportingLevels(boolean logMessage, boolean logWarning, boolean logError, boolean logFatalError)
          Configure the reporting levels
 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

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 logged
logWarning - Set whether warnings should be logged
logError - Set whether errors should be logged
logFatalError - Set whether fatal errors should be logged
Method Detail

partialReport

public void partialReport(java.lang.String msg)
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.

Parameters:
msg - The text of the message to be displayed

messageReport

public void messageReport(java.lang.String msg)
Notification of an informational message from the system.

Specified by:
messageReport in interface org.j3d.util.ErrorReporter
Parameters:
msg - The text of the message to be displayed

warningReport

public void warningReport(java.lang.String msg,
                          java.lang.Exception e)
Notification of a warning in the way the system is currently operating. This is a non-fatal, non-serious error.

Specified by:
warningReport in interface org.j3d.util.ErrorReporter
Parameters:
msg - The text of the message to be displayed
e - The exception that caused this warning. May be null

errorReport

public void errorReport(java.lang.String msg,
                        java.lang.Exception e)
Notification of a recoverable error.

Specified by:
errorReport in interface org.j3d.util.ErrorReporter
Parameters:
msg - The text of the message to be displayed
e - The exception that caused this warning. May be null

fatalErrorReport

public void fatalErrorReport(java.lang.String msg,
                             java.lang.Exception e)
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:
fatalErrorReport in interface org.j3d.util.ErrorReporter
Parameters:
msg - The text of the message to be displayed
e - The exception that caused this warning. May be null

setReportingLevels

public void setReportingLevels(boolean logMessage,
                               boolean logWarning,
                               boolean logError,
                               boolean logFatalError)
Configure the reporting levels

Parameters:
logMessage - Set whether messages should be logged
logWarning - Set whether warnings should be logged
logError - Set whether errors should be logged
logFatalError - Set whether fatal errors should be logged

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium