com.interface21.jdbc.core
Class UncategorizedSQLException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.dao.DataAccessException
                                |
                                +--com.interface21.dao.UncategorizedDataAccessException
                                      |
                                      +--com.interface21.jdbc.core.UncategorizedSQLException
All Implemented Interfaces:
HasRootCause, java.io.Serializable

public class UncategorizedSQLException
extends UncategorizedDataAccessException

Exception thrown when we can't classify a SQLException into one of our generic data access exceptions

Version:
$Id: UncategorizedSQLException.java,v 1.1.1.1 2003/02/11 08:10:23 johnsonr Exp $
Author:
Rod Johnson
See Also:
com.interface21.dao, Serialized Form

Constructor Summary
UncategorizedSQLException(java.lang.String mesg, java.lang.String sql, java.sql.SQLException ex)
          Constructor for ConnectionFactoryException.
 
Method Summary
 java.lang.String getSql()
          Return the SQL that led to the problem
 java.sql.SQLException getSQLException()
          Return the underlying SQLException
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UncategorizedSQLException

public UncategorizedSQLException(java.lang.String mesg,
                                 java.lang.String sql,
                                 java.sql.SQLException ex)
Constructor for ConnectionFactoryException.
Parameters:
mesg - message
sql - SQL we were tring to execute
ex - SQLException
Method Detail

getSQLException

public java.sql.SQLException getSQLException()
Return the underlying SQLException
Returns:
the underlying SQLException

getSql

public java.lang.String getSql()
Return the SQL that led to the problem
Returns:
the SQL that led to the problem


Rod Johnson and Spring contributors 2001-2003.