Package org.web3d.vrml.export
Class PlainTextErrorReporter
java.lang.Object
org.web3d.vrml.export.PlainTextErrorReporter
- All Implemented Interfaces:
org.j3d.util.ErrorReporter
An implementation of the ErrorReporter interface that just writes everything
to System.out System.err.
The default implementation to be used as convenience code for when the end user has not supplied their own instance.
- Version:
- $Revision: 1.2 $
- Author:
- Alan Hudson
-
Constructor Summary
Constructors -
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
-
PlainTextErrorReporter
public PlainTextErrorReporter()Creates a new, default instance of the reporter
-
-
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. For example, it may issue a message when a URL cannot be resolved.- 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. For example you will get an warning when a value has been set that is out of range.- 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
Notification of a recoverable error. This is a serious, but non-fatal error, for example trying to add a route to a non-existent node or the use of a node that the system cannot find the definition of.- Specified by:
errorReportin interfaceorg.j3d.util.ErrorReporter- Parameters:
msg- The text of the message to be displayede- The exception that caused this warning. May be null
-
fatalErrorReport
Notification of a non-recoverable error that halts the entire system. After you receive this report the runtime system will no longer function - for example a non-recoverable parsing error. The best way out is to reload the file or restart the application internals.- 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
-