package org.theonefx.wcframework.jdbc.exception;
import java.sql.SQLException;
/**
* Fatal exception thrown when we can't connect to an RDBMS using JDBC.
*/
public class CannotGetJdbcConnectionException extends DataAccessResourceFailureException {
private static final long serialVersionUID = -8155010327173271300L;
/**
* Constructor for CannotGetJdbcConnectionException.
* @param msg the detail message
* @param ex SQLException root cause
*/
public CannotGetJdbcConnectionException(String msg, SQLException ex) {
super(msg, ex);
}
/**
* Constructor for CannotGetJdbcConnectionException.
* @param msg the detail message
* @param ex ClassNotFoundException root cause
* @deprecated since Spring 2.5, in favor of throwing an
* IllegalStateException in case of the driver not being found
*/
@Deprecated
public CannotGetJdbcConnectionException(String msg, ClassNotFoundException ex) {
super(msg, ex);
}
}