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

Ian Grigg iang@cypherpunks.ai
Wed, 11 Apr 2001 15:15:21 -0400 (AST)


iang        01/04/11 15:15:21

  Modified:    webfunds/sox Errors.java
  Log:
  comments only

Revision  Changes    Path
1.19      +11 -3     java/webfunds/sox/Errors.java

Index: Errors.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/Errors.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Errors.java	2000/12/07 21:34:37	1.18
+++ Errors.java	2001/04/11 19:15:21	1.19
@@ -1,5 +1,5 @@
 /*
- * $Id: Errors.java,v 1.18 2000/12/07 21:34:37 iang Exp $
+ * $Id: Errors.java,v 1.19 2001/04/11 19:15:21 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -31,7 +31,7 @@
 
 
     /**
-     *  10-19 are transaction errors.
+     *  10-19 are routine transaction errors.
      *  Passed up as an exception number.
      */
     public static final int ERROR_NO_FUNDS             = 10;
@@ -45,11 +45,15 @@
     public static final int ERROR_ALREADY              = 18; // pid already set
     public static final int ERROR_DEP_ALREADY          = 19; // did already set
 
+    /**
+     *  20-29 are more unusual transaction errors.
+     */
     public static final int ERROR_NOT_PERMITTED        = 20; // limited account
     public static final int ERROR_NOT_SUPPORTED        = 21; // by this Ivan
 
     /**
-     *  30-49 are bad arguments within a deposit or payment.
+     *  30-39 are bad arguments within a deposit or payment.
+     *  Something is probably wrong with the code if these occur.
      */
     public static final int ERROR_NOT_A_PAYMENT        = 30;
     public static final int ERROR_PAYMENT_NOT_SIGNED   = 31;
@@ -61,6 +65,10 @@
     public static final int ERROR_NOT_SOURCE_KHID      = 37;
     public static final int ERROR_ILLEGAL_PID          = 38;
     public static final int ERROR_ILLEGAL_DID          = 39;
+
+    /**
+     *  40-49 are token payment errors.
+     */
     public static final int ERROR_NOT_ENUF             = 40;  // withdrawal
     public static final int ERROR_NOT_PROTO            = 41;  // withdrawal
     public static final int ERROR_NOT_TOKEN            = 42;  // withdrawal