org.springframework.jdbc
Class CannotGetJdbcConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.dao.DataAccessException
                      extended by org.springframework.dao.NonTransientDataAccessException
                          extended by org.springframework.dao.NonTransientDataAccessResourceException
                              extended by org.springframework.dao.DataAccessResourceFailureException
                                  extended by org.springframework.jdbc.CannotGetJdbcConnectionException
All Implemented Interfaces:
Serializable

public class CannotGetJdbcConnectionException
extends DataAccessResourceFailureException

Fatal exception thrown when we can't connect to an RDBMS using JDBC.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
CannotGetJdbcConnectionException(String msg, ClassNotFoundException ex)
          Deprecated. since Spring 2.5, in favor of throwing an IllegalStateException in case of the driver not being found
CannotGetJdbcConnectionException(String msg, SQLException ex)
          Constructor for CannotGetJdbcConnectionException.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CannotGetJdbcConnectionException

public CannotGetJdbcConnectionException(String msg,
                                        SQLException ex)
Constructor for CannotGetJdbcConnectionException.

Parameters:
msg - the detail message
ex - SQLException root cause

CannotGetJdbcConnectionException

public CannotGetJdbcConnectionException(String msg,
                                        ClassNotFoundException ex)
Deprecated. since Spring 2.5, in favor of throwing an IllegalStateException in case of the driver not being found

Constructor for CannotGetJdbcConnectionException.

Parameters:
msg - the detail message
ex - ClassNotFoundException root cause


Copyright © 2002-2008 The Spring Framework.