FileDocCategorySizeDatePackage
APDUException.javaAPI DocphoneME MR2 API (J2ME)4097Wed May 02 18:00:40 BST 2007javacard.framework

APDUException

public class APDUException extends CardRuntimeException
APDUException represents an APDU-related exception.

Fields Summary
public static final short
ILLEGAL_USE
This APDUException reason code indicates that the method should not be invoked based on the current state of the APDU.
public static final short
BUFFER_BOUNDS
This reason code is used by the APDU.sendBytes() method to indicate that the sum of buffer offset parameter and the byte length parameter exceeds the APDU buffer size.
public static final short
BAD_LENGTH
This reason code is used by the APDU.setOutgoingLength() method to indicate that the length parameter is greater that 256 or if non BLOCK CHAINED data transfer is requested and len is greater than (IFSD-2), where IFSD is the Outgoing Block Size.
public static final short
IO_ERROR
This reason code indicates that an unrecoverable error occurred in the I/O transmission layer.
public static final short
NO_T0_GETRESPONSE
This reason code indicates that during T=0 protocol, the CAD did not return a GET RESPONSE command in response to a <61xx> response status to send additional data. The outgoing transfer has been aborted. No more data or status can be sent to the CAD in this APDU.process() method.
public static final short
T1_IFD_ABORT
This reason code indicates that during T=1 protocol, the CAD returned an ABORT S-Block command and aborted the data transfer. The incoming or outgoing transfer has been aborted. No more data can be received from the CAD. No more data or status can be sent to the CAD in this APDU.process() method.
public static final short
NO_T0_REISSUE
This reason code indicates that during T=0 protocol, the CAD did not reissue the same APDU command with the corrected length in response to a <6Cxx> response status to request command reissue with the specified length. The outgoing transfer has been aborted. No more data or status can be sent to the CAD in this APDU.process() method.
Constructors Summary
public APDUException(short reason)
Constructs an APDUException.

param
reason the reason for the exception.

    
                   
       
	super(reason);
    
Methods Summary
public static voidthrowIt(short reason)
Throws an instance of APDUException with the specified reason.

param
reason the reason for the exception.
exception
APDUException always.

	throw new APDUException(reason);