com.softtech.jdbc
Class HSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.softtech.jdbc.DatabaseException
                  extended by com.softtech.jdbc.HSQLException
All Implemented Interfaces:
java.io.Serializable

public class HSQLException
extends DatabaseException

Subclass of DatabaseException with specific knowledge of various HSQL sql error codes. Created on March 7, 2008

Author:
Jeff Smith
See Also:
Serialized Form

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

HSQLException

public HSQLException(java.lang.String msg,
                     java.sql.SQLException e)
HSQLException Constructor

Parameters:
msg - exception message
e - SQLException

HSQLException

public HSQLException(java.lang.String msg)
HSQLException Constructor

Parameters:
msg - exception message
Method Detail

isBadSQLGrammar

public boolean isBadSQLGrammar()
Was db exception caused by bad sql grammer (a typo) return true or false

Specified by:
isBadSQLGrammar in class DatabaseException

isDataIntegrityViolation

public boolean isDataIntegrityViolation()
Was db exception caused by a data integrity violation

Specified by:
isDataIntegrityViolation in class DatabaseException
Returns:
true or false

isDatabaseUnavailable

public boolean isDatabaseUnavailable()
Was db exception caused by database being unavailable

Specified by:
isDatabaseUnavailable in class DatabaseException
Returns:
true or false

isInvalidBindVariableName

public boolean isInvalidBindVariableName()
Was db exception caused by referencing a invalid bind parameter name

Specified by:
isInvalidBindVariableName in class DatabaseException
Returns:
true or false

isNonExistentTableOrViewOrCol

public boolean isNonExistentTableOrViewOrCol()
Was db exception caused by referencing a non existent table or view

Specified by:
isNonExistentTableOrViewOrCol in class DatabaseException
Returns:
true or false

isRowlockOrTimedOut

public boolean isRowlockOrTimedOut()
Was db exception caused by a row lock error or some other sql query timeout return true or false

Specified by:
isRowlockOrTimedOut in class DatabaseException

isUniqueConstraintViolation

public boolean isUniqueConstraintViolation()
Was db exception caused by a duplicate record (unique constraint) violation

Specified by:
isUniqueConstraintViolation in class DatabaseException

isVarParameterUnbound

public boolean isVarParameterUnbound()
was db exception caused by a an unbound variable (parameter)

Specified by:
isVarParameterUnbound in class DatabaseException
Returns:
boolean