[Webfunds-commits] java/webfunds/client/contracts/wizard WizardPanel.java

Ian Grigg iang@cypherpunks.ai
Wed, 16 Aug 2000 14:42:29 -0400 (AST)


iang        00/08/16 14:42:29

  Modified:    webfunds/client/contracts/wizard WizardPanel.java
  Log:
  Minor mod to include exception message within the error() display.
  Works well for ContractException, may bomb for others...

Revision  Changes    Path
1.3       +4 -4      java/webfunds/client/contracts/wizard/WizardPanel.java

Index: WizardPanel.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/contracts/wizard/WizardPanel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WizardPanel.java	2000/08/15 23:22:35	1.2
+++ WizardPanel.java	2000/08/16 18:42:28	1.3
@@ -1,5 +1,5 @@
 /*
- * $Id: WizardPanel.java,v 1.2 2000/08/15 23:22:35 edwin Exp $
+ * $Id: WizardPanel.java,v 1.3 2000/08/16 18:42:28 iang Exp $
  *
  * Copyright (c) Systemics Inc 2000 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -15,7 +15,7 @@
  * Abstract superclass for all panels in a wizard.
  *
  * @author Edwin Woudt <edwin@webfunds.org>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 
 public abstract class WizardPanel extends JPanel {
@@ -52,9 +52,9 @@
      */
     protected void error(String message, Exception e) {
         System.out.println("ERROR: "+message);
-        if (e != null) { e.printStackTrace(); }
+        if (e != null) { e.printStackTrace(); message += "\n\n\""+e+"\""; }
         JOptionPane.showMessageDialog(this, message, "Error", 
                                       JOptionPane.ERROR_MESSAGE);
     }
    
-}
\ No newline at end of file
+}