Class UncategorizedSQLException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.springframework.core.NestedRuntimeException
                  extended byorg.springframework.dao.DataAccessException
                      extended byorg.springframework.dao.UncategorizedDataAccessException
                          extended byorg.springframework.jdbc.UncategorizedSQLException
All Implemented Interfaces:

public class UncategorizedSQLException
extends UncategorizedDataAccessException

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

Rod Johnson
See Also:
Serialized Form

Field Summary
Fields inherited from class java.lang.RuntimeException
Constructor Summary
UncategorizedSQLException(String msg, String sql, SQLException ex)
          Constructor for ConnectionFactoryException.
Method Summary
 String getSql()
          Return the SQL that led to the problem.
 SQLException getSQLException()
          Return the underlying SQLException.
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


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

msg - message
sql - SQL we were tring to execute
ex - SQLException
Method Detail


public SQLException getSQLException()
Return the underlying SQLException.


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

Copyright (C) 2003-2004 The Spring Framework Project.