com.ibm.events.datastore

Class DataStoreSqlException

  • java.lang.Object
    • java.lang.Throwable
  • All Implemented Interfaces:
    java.io.Serializable


    public class DataStoreSqlException
    extends com.ibm.events.datastore.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.2 5/28/14
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      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.
    • 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.
IBM Business Process ManagerTM
Release 8