|
||||||||
| 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.softtech.jdbc.DatabaseException
com.softtech.jdbc.HSQLException
public class HSQLException
Subclass of DatabaseException with specific knowledge of various HSQL sql error codes. Created on March 7, 2008
| Field Summary |
|---|
| Fields inherited from class com.softtech.jdbc.DatabaseException |
|---|
sqlErrorCode, SQLState |
| Constructor Summary | |
|---|---|
HSQLException(java.lang.String msg)
HSQLException Constructor |
|
HSQLException(java.lang.String msg,
java.sql.SQLException e)
HSQLException Constructor |
|
| Method Summary | |
|---|---|
boolean |
isBadSQLGrammar()
Was db exception caused by bad sql grammer (a typo) return true or false |
boolean |
isDatabaseUnavailable()
Was db exception caused by database being unavailable |
boolean |
isDataIntegrityViolation()
Was db exception caused by a data integrity violation |
boolean |
isInvalidBindVariableName()
Was db exception caused by referencing a invalid bind parameter name |
boolean |
isNonExistentTableOrViewOrCol()
Was db exception caused by referencing a non existent table or view |
boolean |
isRowlockOrTimedOut()
Was db exception caused by a row lock error or some other sql query timeout return true or false |
boolean |
isUniqueConstraintViolation()
Was db exception caused by a duplicate record (unique constraint) violation |
boolean |
isVarParameterUnbound()
was db exception caused by a an unbound variable (parameter) |
| Methods inherited from class com.softtech.jdbc.DatabaseException |
|---|
getSQLErrorCode, getSQLState |
| 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 |
| Constructor Detail |
|---|
public HSQLException(java.lang.String msg,
java.sql.SQLException e)
msg - exception messagee - SQLExceptionpublic HSQLException(java.lang.String msg)
msg - exception message| Method Detail |
|---|
public boolean isBadSQLGrammar()
isBadSQLGrammar in class DatabaseExceptionpublic boolean isDataIntegrityViolation()
isDataIntegrityViolation in class DatabaseExceptionpublic boolean isDatabaseUnavailable()
isDatabaseUnavailable in class DatabaseExceptionpublic boolean isInvalidBindVariableName()
isInvalidBindVariableName in class DatabaseExceptionpublic boolean isNonExistentTableOrViewOrCol()
isNonExistentTableOrViewOrCol in class DatabaseExceptionpublic boolean isRowlockOrTimedOut()
isRowlockOrTimedOut in class DatabaseExceptionpublic boolean isUniqueConstraintViolation()
isUniqueConstraintViolation in class DatabaseExceptionpublic boolean isVarParameterUnbound()
isVarParameterUnbound in class DatabaseException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||