Package com.mckoi.database
Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.mckoi.database.TransactionException
- All Implemented Interfaces:
Serializable
Thrown when a transaction error happens. This can only be thrown during
the commit process of a transaction.
- Author:
- Tobias Downer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Thrown when a transaction selects data from a table that has committed changes to it from another transaction.static final int
Thrown when a transaction conflict occurs and would cause duplicate tables to be created.static final int
Thrown when a transaction deletes or updates a row that another transaction has committed a change to.static final int
Thrown when a transaction adds/removes/modifies rows from a table that has been dropped by another transaction.static final int
Thrown when a transaction drops or alters a table that another transaction has committed a change to. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ROW_REMOVE_CLASH
public static final int ROW_REMOVE_CLASHThrown when a transaction deletes or updates a row that another transaction has committed a change to.- See Also:
-
TABLE_REMOVE_CLASH
public static final int TABLE_REMOVE_CLASHThrown when a transaction drops or alters a table that another transaction has committed a change to.- See Also:
-
TABLE_DROPPED
public static final int TABLE_DROPPEDThrown when a transaction adds/removes/modifies rows from a table that has been dropped by another transaction.- See Also:
-
DIRTY_TABLE_SELECT
public static final int DIRTY_TABLE_SELECTThrown when a transaction selects data from a table that has committed changes to it from another transaction.- See Also:
-
DUPLICATE_TABLE
public static final int DUPLICATE_TABLEThrown when a transaction conflict occurs and would cause duplicate tables to be created.- See Also:
-
-
Constructor Details
-
TransactionException
-
-
Method Details
-
getType
public int getType()Returns the type of transaction error this is.
-