uk.ac.soton.itinnovation.grid.client.swing
Class SwingErrorDialog

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.swing.SwingErrorDialog

public class SwingErrorDialog
extends Object

Display errors and exceptions in a Swing dialog box.


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
SwingErrorDialog()
           
 
Method Summary
static void reportError(Container parentComponent, Exception ex, Object object)
          Report an exception in a dialog box.
static void reportError(Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

SwingErrorDialog

public SwingErrorDialog()
Method Detail

reportError

public static void reportError(Container parentComponent,
                               Exception ex,
                               Object object)
Report an exception in a dialog box. The exception's full stacktrace is also logged using log4j. If the current thread is not the Swing thread, SwingUtilities.invokeLater is used automatically.


reportError

public static void reportError(Exception ex)


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.