com.ibm.btt.services.jdbcservicesinfra
Class DSESQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.btt.base.DSEException
com.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
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 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 |
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 ExceptionaCode
- java.lang.String - the code of the ExceptionanErrorCode
- int - the SQL Error Code as returned by the SQLExceptionaSQLState
- java.lang.String - the SQL State as returned by the SQLExceptionaMessage
- java.lang.String - the Exception message
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
(c) Copyright IBM Corporation 1998, 2005