[Webfunds-commits] java/webfunds/sox/value CancelException.java
Ian Grigg
iang@cypherpunks.ai
Thu, 12 Apr 2001 00:50:02 -0400 (AST)
iang 01/04/12 00:50:01
Modified: webfunds/sox/value CancelException.java
Log:
added isCancelled to mean that this one already cancelled.
Revision Changes Path
1.6 +6 -1 java/webfunds/sox/value/CancelException.java
Index: CancelException.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/value/CancelException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- CancelException.java 2001/03/24 23:57:23 1.5
+++ CancelException.java 2001/04/12 04:50:01 1.6
@@ -1,11 +1,13 @@
/*
- * $Id: CancelException.java,v 1.5 2001/03/24 23:57:23 iang Exp $
+ * $Id: CancelException.java,v 1.6 2001/04/12 04:50:01 iang Exp $
*
* Copyright (c) 2000 Systemics Inc on behalf of
* the WebFunds Development Team. All Rights Reserved.
*/
package webfunds.sox.value;
+import webfunds.sox.Errors;
+
/**
* This exception class is thrown when a cancel call fails.
* For high-level but non-GUI wallet calls.
@@ -19,4 +21,7 @@
public CancelException(int errno, String msg) { super(errno, msg); }
public String toString() { return "CanEx: " + super.toString(); }
+
+ /** this is true when the subject of the cancel is already cancelled */
+ public boolean isCancelled() { return number == Errors.ERROR_CANCELLED; }
}