com.ibm.dse.services.jdbc
Class DSESQLException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.dse.base.DSEException
|
+--com.ibm.dse.services.jdbc.DSESQLException
- 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
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,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
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:
int
-
setSQLState
public void setSQLState(java.lang.String aSQLState)
- Sets the SQL State
- Parameters:
java.lang.String
-