|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mckoi.database.DatabaseConstraintViolationException
public class DatabaseConstraintViolationException
A database exception that represents a constraint violation.
Field Summary | |
---|---|
static int |
CHECK_VIOLATION
A Check constraint violation error code. |
static int |
DROP_COLUMN_VIOLATION
Column can't be dropped before of an reference to it. |
static int |
DROP_TABLE_VIOLATION
Tried to drop a table that is referenced by another source. |
static int |
FOREIGN_KEY_VIOLATION
A Foreign Key constraint violation error code. |
static int |
JAVA_TYPE_VIOLATION
Java type constraint violation error code (tried to insert a Java object that wasn't derived from the java object type defined for the column). |
static int |
NULLABLE_VIOLATION
A Nullable constraint violation error code (data added to not null columns that was null). |
static int |
PRIMARY_KEY_VIOLATION
A Primary Key constraint violation error code. |
static int |
UNIQUE_VIOLATION
A Unique constraint violation error code. |
Constructor Summary | |
---|---|
DatabaseConstraintViolationException(int err_code,
java.lang.String msg)
Constructor. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the violation error code. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PRIMARY_KEY_VIOLATION
public static final int UNIQUE_VIOLATION
public static final int CHECK_VIOLATION
public static final int FOREIGN_KEY_VIOLATION
public static final int NULLABLE_VIOLATION
public static final int JAVA_TYPE_VIOLATION
public static final int DROP_TABLE_VIOLATION
public static final int DROP_COLUMN_VIOLATION
Constructor Detail |
---|
public DatabaseConstraintViolationException(int err_code, java.lang.String msg)
Method Detail |
---|
public int getErrorCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |