[Webfunds-commits] java/webfunds/sox SOXException.java

Ian Grigg iang@cypherpunks.ai
Tue, 20 Mar 2001 19:16:26 -0400 (AST)


iang        01/03/20 19:16:26

  Modified:    webfunds/sox SOXException.java
  Log:
  inherit from Model which adds the integer

Revision  Changes    Path
1.7       +5 -17     java/webfunds/sox/SOXException.java

Index: SOXException.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/SOXException.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SOXException.java	2000/09/05 19:35:28	1.6
+++ SOXException.java	2001/03/20 23:16:26	1.7
@@ -1,21 +1,19 @@
 /*
- * $Id: SOXException.java,v 1.6 2000/09/05 19:35:28 iang Exp $
+ * $Id: SOXException.java,v 1.7 2001/03/20 23:16:26 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
  */
 package webfunds.sox;
 
+import webfunds.util.ExceptionModel;
+
 /**
  * This exception base class is inherited by all SOX Exceptions
  */
 public class SOXException
-    extends Exception
+    extends ExceptionModel
 {
-    protected int number;
-    public int    getNumber() { return number; }
-    public String toString() { return "(" + number + ") " + super.toString(); }
-
     /**
      *  Internal errors detected.
      *  Positive numbers are reserved for SOX reply errors.
@@ -66,22 +64,12 @@
     }
 
     /**
-     *  getNumber() will return 0
-     */
-    public SOXException(String msg)
-    {
-        super(msg);
-	number = 0;
-    }
-
-    /**
      *  @param num is an error code, undefined here,
      *  extending classes to define, excepting 0 which means "it wasn't set"
      */
     public SOXException(int num, String msg)
     {
-        super(msg);
-        number = num;
+        super(num, msg);
     }
 
 }