Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Class ErrorReporter  view ErrorReporter download

  extended bypspdash.ErrorReporter

public class ErrorReporter
extends java.lang.Object

This class provides a generally reusable feature for displaying a collected list of error messages to the user. To use this class,

  1. Create an instance of ErrorReporter.
  2. Possibly log one or more error messages using the logError method.
  3. Call done.
If any error messages have been logged when you call the done() method, they will be displayed to the user in a dialog box. If no errors were reported, the done() method will do nothing and return.

Field Summary
(package private)  java.util.Vector errors
(package private)  java.lang.Object postMessage
(package private)  java.lang.Object preMessage
(package private)  java.lang.String title
Constructor Summary
ErrorReporter(java.lang.String title, java.lang.Object preMessage, java.lang.Object postMessage)
          Create a new ErrorReporter.
Method Summary
 void done()
 void logError(java.lang.String errorMessage)
          Add an error to this error reporter.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


java.lang.String title


java.lang.Object preMessage


java.lang.Object postMessage


java.util.Vector errors
Constructor Detail


public ErrorReporter(java.lang.String title,
                     java.lang.Object preMessage,
                     java.lang.Object postMessage)
Create a new ErrorReporter. The parameters control the apppearance of the error dialog that this object will display if needed.

Method Detail


public void logError(java.lang.String errorMessage)
Add an error to this error reporter. If the error message is a duplicate of one already logged for this ErrorReporter, this method call will have no effect.


public void done()