public class

CannotGetJdbcConnectionException

extends DataAccessResourceFailureException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.dao.DataAccessException
             ↳ org.springframework.dao.NonTransientDataAccessException
               ↳ org.springframework.dao.NonTransientDataAccessResourceException
                 ↳ org.springframework.dao.DataAccessResourceFailureException
                   ↳ org.springframework.jdbc.CannotGetJdbcConnectionException

Class Overview

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

Summary

Public Constructors
CannotGetJdbcConnectionException(String msg, SQLException ex)
Constructor for CannotGetJdbcConnectionException.
CannotGetJdbcConnectionException(String msg, ClassNotFoundException ex)
This constructor is deprecated. since Spring 2.5, in favor of throwing an IllegalStateException in case of the driver not being found
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public CannotGetJdbcConnectionException (String msg, SQLException ex)

Constructor for CannotGetJdbcConnectionException.

Parameters
msg the detail message
ex SQLException root cause

public CannotGetJdbcConnectionException (String msg, ClassNotFoundException ex)

This constructor is 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