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

TransactionException

public class TransactionException extends CardRuntimeException
TransactionException represents an exception in the transaction subsystem.

Fields Summary
public static final short
IN_PROGRESS
This reason code is used by the beginTransaction method to indicate a transaction is already in progress.
public static final short
NOT_IN_PROGRESS
This reason code is used by the abortTransaction and commitTransaction methods when a transaction is not in progress.
public static final short
BUFFER_FULL
This reason code is used during a transaction to indicate that the commit buffer is full.
public static final short
INTERNAL_FAILURE
This reason code is used during a transaction to indicate an internal JCRE problem (fatal error).
Constructors Summary
public TransactionException(short reason)
Constructs a TransactionException with the specified reason.

param
reason the internal code indicating the cause of the error detected

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

exception
TransactionException always
param
reason the internal code indicating the cause of the error detected

	throw new TransactionException(reason);