com.ibm.events.datastore
Class DataStoreSqlException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.events.EventsException
|
+--com.ibm.events.datastore.DataStoreException
|
+--com.ibm.events.datastore.DataStoreSqlException
- All Implemented Interfaces:
- java.io.Serializable
- public class DataStoreSqlException
- extends DataStoreException
Wrapper for SQLException instances that can be thrown by the JDBC driver.
JDBC resources are not directly exposed to the data store's caller.
- Since:
- 5.1.0
- Version:
- 1.10 6/9/04
- See Also:
- Serialized Form
Constructor Summary |
DataStoreSqlException(java.lang.String key,
java.lang.String file,
java.lang.Object[] parms,
java.sql.SQLException cause)
Constructs a new DataStoreSqlException with a detail message,
message translation information (resource bundle, message key and message
substitutions) and a nested exception. |
Method Summary |
int |
getErrorCode()
Access method for the errorCode property. |
java.lang.String |
getLocalizedRdbmsMessage()
Access method for the localizedRdbmsMessage property. |
java.lang.String |
getSQLState()
Access method for the sqlState property. |
Methods inherited from class com.ibm.events.EventsException |
getCause, getFile, getKey, getLocalizedMessage, getLocalizedMessage, getMessage, getParms, initCause, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataStoreSqlException
public DataStoreSqlException(java.lang.String key,
java.lang.String file,
java.lang.Object[] parms,
java.sql.SQLException cause)
- Constructs a new
DataStoreSqlException
with a detail message,
message translation information (resource bundle, message key and message
substitutions) and a nested exception.
- Parameters:
key
- The message key.file
- The name of the message file to use.parms
- An array of elements to be inserted into the message.cause
- The nested exception or null
if a nested
exception is not appropriate.
getErrorCode
public int getErrorCode()
- Access method for the errorCode property. This is the value returned
by the
SQLException
getErrorCode() method.
- Returns:
- The value of the errorCode property.
getSQLState
public java.lang.String getSQLState()
- Access method for the sqlState property. This is the value returned
by the
SQLException
getSQLState() method.
- Returns:
- The value of the sqlState property.
getLocalizedRdbmsMessage
public java.lang.String getLocalizedRdbmsMessage()
- Access method for the localizedRdbmsMessage property. This is the value
returned by the
SQLException
getLocalizedMessage() method.
- Returns:
- The value of the localizedMessage property.