IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services.jdbcservicesinfra
Class DSESQLException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.btt.base.DSEException
              extended bycom.ibm.btt.services.jdbcservicesinfra.DSESQLException
All Implemented Interfaces:
java.io.Serializable

public class DSESQLException
extends DSEException

The DSESQLException class identifies the exception that is thrown when an SQLException is returned by the code that provides the JDBC interface with the ability to access a database.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.base.DSEException
critical, harmless
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
DSESQLException(java.lang.String aSeverity, java.lang.String aCode, int anErrorCode, java.lang.String aSQLState, java.lang.String aMessage)
          This is the DSESQLException class constructor.
 
Method Summary
 int getErrorCode()
          Returns the SQL Error Code
 java.lang.String getSQLState()
          Returns the SQL State
 void setErrorCode(int anErrorCode)
          Sets the SQL Error Code
 void setSQLState(java.lang.String aSQLState)
          Sets the SQL State
 
Methods inherited from class com.ibm.btt.base.DSEException
getClassName, getCode, getMethodName, getSeverity, setClassName, setCode, setMethodName, setSeverity
 
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

DSESQLException

public DSESQLException(java.lang.String aSeverity,
                       java.lang.String aCode,
                       int anErrorCode,
                       java.lang.String aSQLState,
                       java.lang.String aMessage)
This is the DSESQLException class constructor.

Parameters:
aSeverity - java.lang.String - the severity of the Exception
aCode - java.lang.String - the code of the Exception
anErrorCode - int - the SQL Error Code as returned by the SQLException
aSQLState - java.lang.String - the SQL State as returned by the SQLException
aMessage - java.lang.String - the Exception message
Method Detail

getErrorCode

public int getErrorCode()
Returns the SQL Error Code

Returns:
int

getSQLState

public java.lang.String getSQLState()
Returns the SQL State

Returns:
java.lang.String

setErrorCode

public void setErrorCode(int anErrorCode)
Sets the SQL Error Code

Parameters:
anErrorCode - int

setSQLState

public void setSQLState(java.lang.String aSQLState)
Sets the SQL State

Parameters:
aSQLState - java.lang.String

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005