Class SqlFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.db.sql.SqlFailure
A database error that a caller can act on: a transaction that lost a race
with another one (CONCURRENCY) or a write a constraint refused
(INTEGRITY).
Applications see this type. The backend reports the same failures as its own
ConcurrencyFailureException and DataIntegrityViolationException.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA deadlock, a serialization failure or a lock that could not be had: the transaction can be run again.static final intA unique, foreign key, check or NOT NULL constraint refused the write. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CONCURRENCY
public static final int CONCURRENCYA deadlock, a serialization failure or a lock that could not be had: the transaction can be run again.- See Also:
-
INTEGRITY
public static final int INTEGRITYA unique, foreign key, check or NOT NULL constraint refused the write.- See Also:
-
-
Constructor Details
-
SqlFailure
-
-
Method Details
-
getKind
public int getKind()CONCURRENCYorINTEGRITY.
-