org.springframework.jdbc.datasource.lookup

Class DataSourceLookupFailureException

  • All Implemented Interfaces:
    java.io.Serializable


    public class DataSourceLookupFailureException
    extends NonTransientDataAccessException
    Exception to be thrown by a DataSourceLookup implementation, indicating that the specified DataSource could not be obtained.
    Since:
    2.0
    Author:
    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

      • DataSourceLookupFailureException

        public DataSourceLookupFailureException(java.lang.String msg)
        Constructor for DataSourceLookupFailureException.
        Parameters:
        msg - the detail message
      • DataSourceLookupFailureException

        public DataSourceLookupFailureException(java.lang.String msg,
                                                java.lang.Throwable cause)
        Constructor for DataSourceLookupFailureException.
        Parameters:
        msg - the detail message
        cause - the root cause (usually from using a underlying lookup API such as JNDI)