Class com.ibm.db.DataException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----com.ibm.db.DataException
- public class DataException
- extends Exception
DataException represents exceptions that are raised by classes in com.ibm.db package.
- Version:
- 1.0 06/30/98
Variable Index
- badJavaClass
- Error code if an invalid Java Class specified.
- badSQLType
- Error code if an invalid/unsupported SQL type is specified.
- badUidPwd
- Error code if an invalid userID or password specified.
- beforeCacheStart
- Error code if the specified row is before the start of the cache.
- cannotConvert
- Error code if the data type cannot be converted.
- cloneNotSupported
- Error code if the object does not support cloning
- connectionClosed
- Error code if the connection is closed.
- decodeError
- Error code if a decode error encountered
- driverNotFound
- Error code if the JDBC driver class not found.
- duplicateColumn
- Error code if the specified column is already defined.
- duplicateParm
- Error code if the specified paramenter is already defined.
- errorMakeField
- Error code if an unsupported Java class specified for column/parameter.
- externallyManaged
- Error code if the connection is externally managed.
- illegalAccess
- Error code if an illegal access exception occurred.
- inconsistentColumns
- Error code if the defined columns are inconsistent with SQL statement.
- indexTooLarge
- Error code if the specified row does not exist in result set.
- instantiationException
- Error code if an instantiation exception occurred.
- internalError
- Error code if an internal error occurred.
- maxSize
- Error code if insert row failed because result set max size limit reached.
- multipleTables
- Error code if updateRow requested and result set is from multiple tables.
- noActiveConnection
- Error code if the connection is not active.
- noConnection
- Error code if there is no associated DatabaseConnection.
- noConnectionSpec
- Error code if an error occured creating DatabaseConnectionSpec.
- noGui
- Error code if no GUI is available.
- noLogonSpec
- Error code if an error occurred creating DatabaseLogonSpec.
- noMetaData
- Error code if there is no associated StatementMetaData.
- noResults
- Error code if the result set is empty.
- noSQL
- Error code if an no SQL Statement is specified.
- noStatement
- Error code if there is no associated SelectStatement.
- noStatementMetaData
- Error code if an error occurred creating StatementMetaData.
- noSuchColumn
- Error code if the specified column is not defined.
- noSuchParm
- Error code if the specified parameter is not defined.
- noSuchTable
- Error code if the specified table is not defined.
- notExecuted
- Error code if the SQL statement has not been exeucted.
- notOpen
- Error code if the result set is not open.
- notRegistered
- Error code if the connection is not registered.
- notSelect
- Error code if the SQL Statement is not a Select statement.
- readOnly
- Error code if the result set is read only.
- rowChanged
- Error code if a row cannot be updated because it has already been independently updated.
- rowNotFound
- Error code if a lock cannot be obtained on the current row.
- rowNotInDatabase
- Error code if the specified row is not in the database.
- SQLDisconnectException
- Error code if an exception occurred during disconnect.
- sqlException
- Error code if a SQLException occurred.
- unzipError
- Error code if an unzup error encountered
- wrongObjectType
- Error code if a wrong object type used to update column/parameter.
- zipError
- Error code if a zip error encountered
Constructor Index
- DataException(String, int)
- Constructs a new DataException with the specified message and error code.
- DataException(String, SQLException)
- Constructs a new DataException with the specified message and associates the specified
SQLException with the DataException.
Method Index
- getErrorCode()
- Returns the error code associated with the exception.
- getSQLException()
- Returns the SQLException that is associated with the DataException.
Variables
sqlException
public static final int sqlException
- Error code if a SQLException occurred.
inconsistentColumns
public static final int inconsistentColumns
- Error code if the defined columns are inconsistent with SQL statement.
wrongObjectType
public static final int wrongObjectType
- Error code if a wrong object type used to update column/parameter.
noSuchColumn
public static final int noSuchColumn
- Error code if the specified column is not defined.
noSQL
public static final int noSQL
- Error code if an no SQL Statement is specified.
badSQLType
public static final int badSQLType
- Error code if an invalid/unsupported SQL type is specified.
notSelect
public static final int notSelect
- Error code if the SQL Statement is not a Select statement.
notRegistered
public static final int notRegistered
- Error code if the connection is not registered.
zipError
public static final int zipError
- Error code if a zip error encountered
unzipError
public static final int unzipError
- Error code if an unzup error encountered
decodeError
public static final int decodeError
- Error code if a decode error encountered
badUidPwd
public static final int badUidPwd
- Error code if an invalid userID or password specified.
noSuchParm
public static final int noSuchParm
- Error code if the specified parameter is not defined.
rowNotFound
public static final int rowNotFound
- Error code if a lock cannot be obtained on the current row.
noConnection
public static final int noConnection
- Error code if there is no associated DatabaseConnection.
notOpen
public static final int notOpen
- Error code if the result set is not open.
connectionClosed
public static final int connectionClosed
- Error code if the connection is closed.
externallyManaged
public static final int externallyManaged
- Error code if the connection is externally managed.
SQLDisconnectException
public static final int SQLDisconnectException
- Error code if an exception occurred during disconnect.
badJavaClass
public static final int badJavaClass
- Error code if an invalid Java Class specified.
errorMakeField
public static final int errorMakeField
- Error code if an unsupported Java class specified for column/parameter.
notExecuted
public static final int notExecuted
- Error code if the SQL statement has not been exeucted.
noResults
public static final int noResults
- Error code if the result set is empty.
readOnly
public static final int readOnly
- Error code if the result set is read only.
beforeCacheStart
public static final int beforeCacheStart
- Error code if the specified row is before the start of the cache.
rowNotInDatabase
public static final int rowNotInDatabase
- Error code if the specified row is not in the database.
multipleTables
public static final int multipleTables
- Error code if updateRow requested and result set is from multiple tables.
cloneNotSupported
public static final int cloneNotSupported
- Error code if the object does not support cloning
instantiationException
public static final int instantiationException
- Error code if an instantiation exception occurred.
illegalAccess
public static final int illegalAccess
- Error code if an illegal access exception occurred.
cannotConvert
public static final int cannotConvert
- Error code if the data type cannot be converted.
noConnectionSpec
public static final int noConnectionSpec
- Error code if an error occured creating DatabaseConnectionSpec.
noLogonSpec
public static final int noLogonSpec
- Error code if an error occurred creating DatabaseLogonSpec.
noStatementMetaData
public static final int noStatementMetaData
- Error code if an error occurred creating StatementMetaData.
noActiveConnection
public static final int noActiveConnection
- Error code if the connection is not active.
internalError
public static final int internalError
- Error code if an internal error occurred.
noGui
public static final int noGui
- Error code if no GUI is available.
noStatement
public static final int noStatement
- Error code if there is no associated SelectStatement.
noMetaData
public static final int noMetaData
- Error code if there is no associated StatementMetaData.
noSuchTable
public static final int noSuchTable
- Error code if the specified table is not defined.
duplicateColumn
public static final int duplicateColumn
- Error code if the specified column is already defined.
duplicateParm
public static final int duplicateParm
- Error code if the specified paramenter is already defined.
indexTooLarge
public static final int indexTooLarge
- Error code if the specified row does not exist in result set.
maxSize
public static final int maxSize
- Error code if insert row failed because result set max size limit reached.
driverNotFound
public static final int driverNotFound
- Error code if the JDBC driver class not found.
rowChanged
public static final int rowChanged
- Error code if a row cannot be updated because it has already been independently updated.
Constructors
DataException
public DataException(String message,
int errorCode)
- Constructs a new DataException with the specified message and error code.
- Parameters:
- message - the exception message
- errorcode - the error code
DataException
public DataException(String message,
SQLException ex)
- Constructs a new DataException with the specified message and associates the specified
SQLException with the DataException.
- Parameters:
- message - the exception message
- ex - the associated SQLException
Methods
getErrorCode
public int getErrorCode()
- Returns the error code associated with the exception. The error codes are defined as
fields in DataException.
- Returns:
- the error code.
getSQLException
public SQLException getSQLException()
- Returns the SQLException that is associated with the DataException.
- Returns:
- the SQLException
