webfunds.token
Class TokenException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--webfunds.token.TokenException
Direct Known Subclasses:
TokenKeyException, TokenPacketException, TokenVersionException

public class TokenException
extends java.lang.Exception

This exception base class is inherited by all Token Exceptions. Model taken from SOXException.

See Also:
Serialized Form

Field Summary
static int LAST_ERROR
          Internal errors detected.
static int NOT_SIGNED
          Internal errors detected.
protected  int number
           
static int UNKNOWN
          Internal errors detected.
 
Constructor Summary
TokenException(int num, java.lang.String msg)
           
TokenException(java.lang.String msg)
          getNumber() will return 0
 
Method Summary
 int getNumber()
           
 boolean isNotSigned()
           
static boolean isTokenException(int errno)
          Is this in our recognised block? Not a complete test, there are some gaps.
 java.lang.String 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

number

protected int number

UNKNOWN

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

NOT_SIGNED

public static final int NOT_SIGNED
Internal errors detected. Positive numbers are reserved for Token reply errors.

LAST_ERROR

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

TokenException

public TokenException(java.lang.String msg)
getNumber() will return 0

TokenException

public TokenException(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

getNumber

public int getNumber()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

isNotSigned

public boolean isNotSigned()

isTokenException

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