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 TypeMethodDescriptionvoid
errorReport
(String msg, Throwable e) Notification of a recoverable error.void
fatalErrorReport
(String msg, Throwable e) Notification of a non-recoverable error that halts the entire system.void
messageReport
(String msg) Notification of an informational message from the system.void
partialReport
(String msg) Notification of an partial message from the system.void
warningReport
(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:
partialReport
in 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:
messageReport
in 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:
warningReport
in 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:
errorReport
in 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:
fatalErrorReport
in interfaceorg.j3d.util.ErrorReporter
- Parameters:
msg
- The text of the message to be displayede
- The exception that caused this warning. May be null
-