webfunds.sox
Class Errors

java.lang.Object
  |
  +--webfunds.sox.Errors

public class Errors
extends java.lang.Object


Field Summary
static int ERROR_ALREADY
           
static int ERROR_BACKEND
           
static int ERROR_CANCELLED
           
static int ERROR_COMM_FAILURE
           
static int ERROR_DEP_ALREADY
           
static int ERROR_DEP_CANCELLED
           
static int ERROR_GOOD
           
static int ERROR_ILLEGAL_CHARS
          70-79 are Nym errors.
static int ERROR_ILLEGAL_DEBIT
           
static int ERROR_ILLEGAL_DID
           
static int ERROR_ILLEGAL_PID
           
static int ERROR_INVALID_KEY
           
static int ERROR_LATER
          These two are in use:
static int ERROR_MESSAGE_NOT_SIGNED
           
static int ERROR_NO_FUNDS
          10-19 are transaction errors.
static int ERROR_NO_SUCH_KHID
          Old AccountsClient.pm errors.
static int ERROR_NOT_A_DID
           
static int ERROR_NOT_A_KHID
           
static int ERROR_NOT_A_PAYMENT
          30-49 are bad arguments within a deposit or payment.
static int ERROR_NOT_A_PID
           
static int ERROR_NOT_A_QUANTITY
           
static int ERROR_NOT_AN_ITEM
           
static int ERROR_NOT_ENUF
           
static int ERROR_NOT_GOOD_KHID
           
static int ERROR_NOT_MAIL_SIG
          50-59 are Mail errors.
static int ERROR_NOT_PERMITTED
           
static int ERROR_NOT_PROTO
           
static int ERROR_NOT_SOURCE_KHID
           
static int ERROR_NOT_SUPPORTED
           
static int ERROR_NOT_TARGET_KHID
           
static int ERROR_NOT_TOKEN
           
static int ERROR_PAYMENT_NOT_SIGNED
           
static int ERROR_REGISTERED_ALREADY
          Lower Layers of SOX
static int ERROR_TOO_OLD
           
static int ERROR_TOO_YOUNG
           
static int ERROR_UNAVAILABLE
           
static int ERROR_UNKNOWN
           
static int ERROR_UNKNOWN_REQUEST
           
static int ERROR_UNKNOWN_SOURCE
           
static int ERROR_UNKNOWN_TARGET
           
static int HIGHEST_ERROR_IN_STRINGS
           
 
Constructor Summary
Errors()
           
 
Method Summary
static java.lang.String errorString(int errno)
          The non OO way of handling errors - get the string.
static boolean isSOXError(int errno)
          Is this in our recognised block? Not a complete test, there are some gaps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN

ERROR_GOOD

public static final int ERROR_GOOD

ERROR_REGISTERED_ALREADY

public static final int ERROR_REGISTERED_ALREADY
Lower Layers of SOX

ERROR_UNKNOWN_REQUEST

public static final int ERROR_UNKNOWN_REQUEST

ERROR_MESSAGE_NOT_SIGNED

public static final int ERROR_MESSAGE_NOT_SIGNED

ERROR_INVALID_KEY

public static final int ERROR_INVALID_KEY

ERROR_COMM_FAILURE

public static final int ERROR_COMM_FAILURE

ERROR_NOT_GOOD_KHID

public static final int ERROR_NOT_GOOD_KHID

ERROR_NO_FUNDS

public static final int ERROR_NO_FUNDS
10-19 are transaction errors. Passed up as an exception number.

ERROR_CANCELLED

public static final int ERROR_CANCELLED

ERROR_DEP_CANCELLED

public static final int ERROR_DEP_CANCELLED

ERROR_TOO_OLD

public static final int ERROR_TOO_OLD

ERROR_TOO_YOUNG

public static final int ERROR_TOO_YOUNG

ERROR_UNKNOWN_TARGET

public static final int ERROR_UNKNOWN_TARGET

ERROR_UNKNOWN_SOURCE

public static final int ERROR_UNKNOWN_SOURCE

ERROR_ILLEGAL_DEBIT

public static final int ERROR_ILLEGAL_DEBIT

ERROR_ALREADY

public static final int ERROR_ALREADY

ERROR_DEP_ALREADY

public static final int ERROR_DEP_ALREADY

ERROR_NOT_PERMITTED

public static final int ERROR_NOT_PERMITTED

ERROR_NOT_SUPPORTED

public static final int ERROR_NOT_SUPPORTED

ERROR_NOT_A_PAYMENT

public static final int ERROR_NOT_A_PAYMENT
30-49 are bad arguments within a deposit or payment.

ERROR_PAYMENT_NOT_SIGNED

public static final int ERROR_PAYMENT_NOT_SIGNED

ERROR_NOT_AN_ITEM

public static final int ERROR_NOT_AN_ITEM

ERROR_NOT_A_QUANTITY

public static final int ERROR_NOT_A_QUANTITY

ERROR_NOT_A_PID

public static final int ERROR_NOT_A_PID

ERROR_NOT_A_DID

public static final int ERROR_NOT_A_DID

ERROR_NOT_TARGET_KHID

public static final int ERROR_NOT_TARGET_KHID

ERROR_NOT_SOURCE_KHID

public static final int ERROR_NOT_SOURCE_KHID

ERROR_ILLEGAL_PID

public static final int ERROR_ILLEGAL_PID

ERROR_ILLEGAL_DID

public static final int ERROR_ILLEGAL_DID

ERROR_NOT_ENUF

public static final int ERROR_NOT_ENUF

ERROR_NOT_PROTO

public static final int ERROR_NOT_PROTO

ERROR_NOT_TOKEN

public static final int ERROR_NOT_TOKEN

ERROR_UNAVAILABLE

public static final int ERROR_UNAVAILABLE

ERROR_NOT_MAIL_SIG

public static final int ERROR_NOT_MAIL_SIG
50-59 are Mail errors.

ERROR_NO_SUCH_KHID

public static final int ERROR_NO_SUCH_KHID
Old AccountsClient.pm errors. Still seem to be in use.

ERROR_NOT_A_KHID

public static final int ERROR_NOT_A_KHID

ERROR_LATER

public static final int ERROR_LATER
These two are in use:

ERROR_BACKEND

public static final int ERROR_BACKEND

ERROR_ILLEGAL_CHARS

public static final int ERROR_ILLEGAL_CHARS
70-79 are Nym errors.

HIGHEST_ERROR_IN_STRINGS

public static final int HIGHEST_ERROR_IN_STRINGS
Constructor Detail

Errors

public Errors()
Method Detail

isSOXError

public static final boolean isSOXError(int errno)
Is this in our recognised block? Not a complete test, there are some gaps.

errorString

public static final java.lang.String errorString(int errno)
The non OO way of handling errors - get the string. Maybe we should have an exception for each one.