public class TransactionException extends CardRuntimeException
TransactionException
represents an exception in the
transaction subsystem.Modifier and Type | Field and 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
This reason code is used by the
beginTransaction
method to indicate
a transaction is already in progress. |
static short |
INTERNAL_FAILURE
This reason code is used during a transaction to indicate
an internal JCRE problem (fatal error).
|
static short |
NOT_IN_PROGRESS
This reason code is used by the
abortTransaction
and commitTransaction methods
when a transaction is not in progress. |
Constructor and Description |
---|
TransactionException(short reason)
Constructs a
TransactionException with the specified reason. |
Modifier and Type | Method and Description |
---|---|
static void |
throwIt(short reason)
Throws an instance of
TransactionException with
the specified reason. |
getReason, setReason
public static final short IN_PROGRESS
beginTransaction
method to indicate
a transaction is already in progress.public static final short NOT_IN_PROGRESS
abortTransaction
and commitTransaction
methods
when a transaction is not in progress.public static final short BUFFER_FULL
public static final short INTERNAL_FAILURE
public TransactionException(short reason)
TransactionException
with the specified reason.reason
- the internal code indicating the cause of the
error detectedpublic static void throwIt(short reason)
TransactionException
with
the specified reason.reason
- the internal code indicating the cause of the
error detectedTransactionException
- alwaysCopyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.