Package javacard.framework
Class TransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javacard.framework.CardRuntimeException
-
- javacard.framework.TransactionException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
TransactionExceptionSubclass
public class TransactionException extends CardRuntimeException
TransactionException
represents an exception in the transaction subsystem.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static short
BUFFER_FULL
This reason code is used during a transaction to indicate that the commit buffer is full.static short
IN_PROGRESS
ThebeginTransaction
method is using this reason code to indicate a transaction is already in progress.static short
INTERNAL_FAILURE
This reason code is used during a transaction to indicate an internal Java Card runtime environment problem (fatal error).static short
NOT_IN_PROGRESS
TheabortTransaction
andcommitTransaction
methods are using this reason code when a transaction is not in progress.
-
Constructor Summary
Constructors Constructor Description TransactionException(short reason)
Constructs a TransactionException with the specified reason.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
throwIt(short reason)
Throws an instance ofTransactionException
with the specified reason.-
Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReason
-
-
-
-
Field Detail
-
IN_PROGRESS
public static final short IN_PROGRESS
ThebeginTransaction
method is using this reason code to indicate a transaction is already in progress.- See Also:
- Constant Field Values
-
NOT_IN_PROGRESS
public static final short NOT_IN_PROGRESS
TheabortTransaction
andcommitTransaction
methods are using this reason code when a transaction is not in progress.- See Also:
- Constant Field Values
-
BUFFER_FULL
public static final short BUFFER_FULL
This reason code is used during a transaction to indicate that the commit buffer is full.- See Also:
- Constant Field Values
-
INTERNAL_FAILURE
public static final short INTERNAL_FAILURE
This reason code is used during a transaction to indicate an internal Java Card runtime environment problem (fatal error).- See Also:
- Constant Field Values
-
-
Method Detail
-
throwIt
public static void throwIt(short reason)
Throws an instance ofTransactionException
with the specified reason.- Throws:
TransactionException
- always.
-
-