|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.jc.JCException
Abstraction encapsulating OpenPlatform/JavaCard specific error codes.
| Field Summary | |
byte[] |
apdu
The response APDU which triggered this exception or null if not supplied. |
static int |
AUTH_FAILED
Authentication failed. |
int |
errorCode
APDU and off-card error codes. |
static int |
FAILED
Catch all for unspecific failures. |
static int |
ILLEGAL_STATE
Operation could not performed because of some illegal state. |
static int |
INVALID_PARAM
Some parameter to some off-card API was not valid. |
static int |
MALFORMED_REPLY
Response APDU could not be parsed by off-card API. |
static int |
NO_ERROR_CODE
The error code is not valid. |
static int |
SHORT_REPLY
Returned APDU was shorter than 2 bytes - Could not retrieve 2 byte status code. |
static int |
TERMINAL_ERROR
Some card terminal error. |
| Constructor Summary | |
JCException(int errorCode,
byte[] apdu,
java.lang.String message)
|
|
| Method Summary | |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NO_ERROR_CODE
public static final int SHORT_REPLY
public static final int INVALID_PARAM
public static final int MALFORMED_REPLY
public static final int AUTH_FAILED
public static final int TERMINAL_ERROR
public static final int ILLEGAL_STATE
public static final int FAILED
public int errorCode
public byte[] apdu
| Constructor Detail |
public JCException(int errorCode,
byte[] apdu,
java.lang.String message)
errorCode - the errorCodeapdu - the offending APDU or nullmessage - some message or null| Method Detail |
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||