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. |
| 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 |
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.
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"
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.