org.springframework.jdbc
Class UncategorizedSQLException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.springframework.core.NestedRuntimeException
                          |
                          +--org.springframework.dao.DataAccessException
                                |
                                +--org.springframework.dao.UncategorizedDataAccessException
                                      |
                                      +--org.springframework.jdbc.UncategorizedSQLException

public class UncategorizedSQLException
extends UncategorizedDataAccessException

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

Author:
Rod Johnson
Version: $Id: UncategorizedSQLException.java,v 1.2 2004/02/02 11:38:33 jhoeller Exp $

Constructor Summary
UncategorizedSQLException(String msg, String sql, SQLException ex)
          Constructor for ConnectionFactoryException.

Method Summary
 StringgetSql()
          Return the SQL that led to the problem.
 SQLExceptiongetSQLException()
          Return the underlying SQLException.

Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace

Methods inherited from class java.lang.Throwable
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Constructor Detail

UncategorizedSQLException

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

getSql

public String getSql()
Return the SQL that led to the problem.

getSQLException

public SQLException getSQLException()
Return the underlying SQLException.

Association Links

to Class java.lang.String

SQL that led to the problem