public class TransactionException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
DIRTY_TABLE_SELECT
Thrown when a transaction selects data from a table that has committed
changes to it from another transaction.
|
static int |
DUPLICATE_TABLE
Thrown when a transaction conflict occurs and would cause duplicate tables
to be created.
|
static int |
ROW_REMOVE_CLASH
Thrown when a transaction deletes or updates a row that another
transaction has committed a change to.
|
static int |
TABLE_DROPPED
Thrown when a transaction adds/removes/modifies rows from a table that
has been dropped by another transaction.
|
static int |
TABLE_REMOVE_CLASH
Thrown when a transaction drops or alters a table that another transaction
has committed a change to.
|
Constructor and Description |
---|
TransactionException(int type,
String message) |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Returns the type of transaction error this is.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int ROW_REMOVE_CLASH
public static final int TABLE_REMOVE_CLASH
public static final int TABLE_DROPPED
public static final int DIRTY_TABLE_SELECT
public static final int DUPLICATE_TABLE
public TransactionException(int type, String message)
Copyright © 2015. All rights reserved.