webwork/src/main/webwork/action ResultException.java,1.6,1.7

[email protected] Sat, 18 May 2002 11:30:50 -0700
Newsgroups gmane.comp.java.webwork.cvs
Message-ID <[email protected]>
Update of /cvsroot/webwork/webwork/src/main/webwork/action
In directory usw-pr-cvs1:/tmp/cvs-serv26038

Modified Files:
	ResultException.java 
Log Message:
added constructor to support error messages

Index: ResultException.java
===================================================================
RCS file: /cvsroot/webwork/webwork/src/main/webwork/action/ResultException.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ResultException.java	11 Mar 2002 09:02:33 -0000	1.6
+++ ResultException.java	18 May 2002 18:30:48 -0000	1.7
@@ -18,12 +18,14 @@
  *
  *	@see Action
  *	@author Rickard Öberg ([email protected])
+ * @author Matt Baldree ([email protected])
  *	@version $Revision$
  */
 public class ResultException
    extends Exception
 {
    String result;
+   String message;
 
    // Public --------------------------------------------------------
    public ResultException(String aResult)
@@ -31,8 +33,26 @@
       this.result = aResult;
    }
 
+   /**
+    *
+    *
+    * @param aResult the result view; i.e. - ERROR, INPUT, etc
+    * @param message the error message
+    */
+   public ResultException(String aResult, String message)
+   {
+      this.result = aResult;
+      this.message = message;
+   }
+
+
    public String getResult()
    {
       return result;
+   }
+
+   public String getMessage()
+   {
+      return message;
    }
 }



_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/