com.ibm.db.base
Class DataException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.db.base.DataException

public class DataException
extends java.lang.Exception

Thown when an error is encountered.

See Also:
Serialized Form

Field Summary
static int badSQLType
           
private static java.lang.String copyright
           
static int decodeError
           
protected  int errCode
           
protected  java.sql.SQLException fieldSqlException
           
static int inconsistentColumnCount
           
static int inconsistentColumnType
           
static int invalidConnPoolType
           
static int jdbc1
           
protected  java.lang.Object[] msgArgs
           
static int noInitialContext
           
static int noSQL
           
static int notRegistered
           
static int sqlException
           
static int unexpectedError
           
static int unzipError
           
static int websphereConnectionError
           
static int wrongObjectType
           
static int zipError
           
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
DataException(java.lang.String s, int errorCode)
          DataException constructor comment.
DataException(java.lang.String s, java.sql.SQLException e)
          This method was created by a SmartGuide.
 
Method Summary
 int getErrorCode()
           
 java.lang.Object[] getMessageArgs()
           
 java.sql.SQLException getSqlException()
          This method was created by a SmartGuide.
 void setMessageArgs(java.lang.Object[] argValues)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

fieldSqlException

protected java.sql.SQLException fieldSqlException

errCode

protected int errCode

msgArgs

protected java.lang.Object[] msgArgs

sqlException

public static final int sqlException

inconsistentColumnCount

public static final int inconsistentColumnCount

inconsistentColumnType

public static final int inconsistentColumnType

wrongObjectType

public static final int wrongObjectType

noSQL

public static final int noSQL

badSQLType

public static final int badSQLType

notRegistered

public static final int notRegistered

zipError

public static final int zipError

unzipError

public static final int unzipError

decodeError

public static final int decodeError

websphereConnectionError

public static final int websphereConnectionError

invalidConnPoolType

public static final int invalidConnPoolType

unexpectedError

public static final int unexpectedError

noInitialContext

public static final int noInitialContext

jdbc1

public static final int jdbc1

copyright

private static final java.lang.String copyright
Constructor Detail

DataException

public DataException(java.lang.String s,
                     int errorCode)
DataException constructor comment.
Parameters:
s - java.lang.String

DataException

public DataException(java.lang.String s,
                     java.sql.SQLException e)
This method was created by a SmartGuide.
Parameters:
message - java.lang.String
jdbcMessage - java.lang.String
Method Detail

getErrorCode

public int getErrorCode()

getMessageArgs

public java.lang.Object[] getMessageArgs()

getSqlException

public java.sql.SQLException getSqlException()
This method was created by a SmartGuide.
Returns:
java.sql.SQLException

setMessageArgs

public void setMessageArgs(java.lang.Object[] argValues)