webfunds.sox
Class SOXException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--webfunds.util.ExceptionModel
                    |
                    +--webfunds.sox.SOXException
Direct Known Subclasses:
SOXAccountException, SOXArgsException, SOXDepositException, SOXIssuerException, SOXKeyException, SOXLaterException, SOXPacketException, SOXRequestException, SOXSubAccountException

public class SOXException
extends ExceptionModel

This exception base class is inherited by all SOX Exceptions

See Also:
Serialized Form

Field Summary
static int BAD_PACKET
          Internal errors detected.
static int COMMS_CERT
          Internal errors detected.
static int FROZEN
          Internal errors detected.
static int LAST_ERROR
          Internal errors detected.
static int LATER_DOWN
          Internal errors detected.
static int LATER_NET
          Internal errors detected.
static int NO_CONTRACT
          Internal errors detected.
static int NO_RECEIPT
          Internal errors detected.
static int NO_SERVER
          Internal errors detected.
static int SERVER_CERT
          Internal errors detected.
static int SERVER_DOWN
          Internal errors detected.
static int UNKNOWN
          Internal errors detected.
 
Fields inherited from class webfunds.util.ExceptionModel
number, UNKNOWN
 
Constructor Summary
SOXException(int num, java.lang.String msg)
           
 
Method Summary
 boolean isBadPacket()
           
 boolean isFrozen()
           
 boolean isLater()
           
 boolean isLaterDown()
           
 boolean isLaterNet()
           
 boolean isNoContract()
           
 boolean isNoReceipt()
           
 boolean isNoServer()
           
 boolean isServerDown()
           
static boolean isSOXException(int errno)
          Is this in our recognised block? Not a complete test, there are some gaps.
 
Methods inherited from class webfunds.util.ExceptionModel
getNumber, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Internal errors detected. Positive numbers are reserved for SOX reply errors.

FROZEN

public static final int FROZEN
Internal errors detected. Positive numbers are reserved for SOX reply errors.

SERVER_DOWN

public static final int SERVER_DOWN
Internal errors detected. Positive numbers are reserved for SOX reply errors.

NO_SERVER

public static final int NO_SERVER
Internal errors detected. Positive numbers are reserved for SOX reply errors.

BAD_PACKET

public static final int BAD_PACKET
Internal errors detected. Positive numbers are reserved for SOX reply errors.

NO_RECEIPT

public static final int NO_RECEIPT
Internal errors detected. Positive numbers are reserved for SOX reply errors.

NO_CONTRACT

public static final int NO_CONTRACT
Internal errors detected. Positive numbers are reserved for SOX reply errors.

LATER_NET

public static final int LATER_NET
Internal errors detected. Positive numbers are reserved for SOX reply errors.

LATER_DOWN

public static final int LATER_DOWN
Internal errors detected. Positive numbers are reserved for SOX reply errors.

SERVER_CERT

public static final int SERVER_CERT
Internal errors detected. Positive numbers are reserved for SOX reply errors.

COMMS_CERT

public static final int COMMS_CERT
Internal errors detected. Positive numbers are reserved for SOX reply errors.

LAST_ERROR

public static final int LAST_ERROR
Internal errors detected. Positive numbers are reserved for SOX reply errors.
Constructor Detail

SOXException

public SOXException(int num,
                    java.lang.String msg)
Parameters:
num - is an error code, undefined here, extending classes to define, excepting 0 which means "it wasn't set"
Method Detail

isFrozen

public boolean isFrozen()

isServerDown

public boolean isServerDown()

isNoServer

public boolean isNoServer()

isBadPacket

public boolean isBadPacket()

isNoReceipt

public boolean isNoReceipt()

isNoContract

public boolean isNoContract()

isLaterNet

public boolean isLaterNet()

isLaterDown

public boolean isLaterDown()

isLater

public boolean isLater()

isSOXException

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