com.ibm.events.datastore
Class DataStoreSqlException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.events.EventsException
              extended bycom.ibm.events.datastore.DataStoreException
                  extended bycom.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.12 5/7/07
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, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.