org.springframework.jdbc

Class CannotGetJdbcConnectionException

  • All Implemented Interfaces:
    java.io.Serializable


    public class CannotGetJdbcConnectionException
    extends DataAccessResourceFailureException
    Fatal exception thrown when we can't connect to an RDBMS using JDBC.
    Author:
    Rod Johnson, Juergen Hoeller
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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(java.lang.String msg)
        Constructor for CannotGetJdbcConnectionException.
        Parameters:
        msg - the detail message
        Since:
        5.0
      • CannotGetJdbcConnectionException

        public CannotGetJdbcConnectionException(java.lang.String msg,
                                                @Nullable
                                                java.sql.SQLException ex)
        Constructor for CannotGetJdbcConnectionException.
        Parameters:
        msg - the detail message
        ex - the root cause SQLException