|
||||||||
| 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.PostgreSQLException
public class PostgreSQLException
Subclass of DatabaseException with specific knowledge of various PostgreSQL sql error codes. Created on 22 may 2005, 15.15
| Field Summary |
|---|
| Fields inherited from class com.softtech.jdbc.DatabaseException |
|---|
sqlErrorCode, SQLState |
| Constructor Summary | |
|---|---|
PostgreSQLException(java.lang.String msg)
PostgreSQLException Constructor |
|
PostgreSQLException(java.lang.String msg,
java.sql.SQLException e)
PostgreSQLException 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 PostgreSQLException(java.lang.String msg,
java.sql.SQLException e)
msg - exception messagee - SQLExceptionpublic PostgreSQLException(java.lang.String msg)
msg - exception message| Method Detail |
|---|
public boolean isDataIntegrityViolation()
isDataIntegrityViolation in class DatabaseExceptionpublic boolean isUniqueConstraintViolation()
isUniqueConstraintViolation in class DatabaseExceptionpublic boolean isBadSQLGrammar()
isBadSQLGrammar in class DatabaseExceptionpublic boolean isNonExistentTableOrViewOrCol()
isNonExistentTableOrViewOrCol in class DatabaseExceptionpublic boolean isInvalidBindVariableName()
isInvalidBindVariableName in class DatabaseExceptionpublic boolean isDatabaseUnavailable()
isDatabaseUnavailable in class DatabaseExceptionpublic boolean isRowlockOrTimedOut()
isRowlockOrTimedOut 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 | |||||||