The Spring Framework

org.springframework.jdbc.datasource.lookup
Class DataSourceLookupFailureException

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.jdbc.datasource.lookup.DataSourceLookupFailureException
All Implemented Interfaces:
Serializable

public class DataSourceLookupFailureException
extends DataAccessException

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

Constructor Summary
DataSourceLookupFailureException(String msg)
          Constructor for DataSourceLookupFailureException.
DataSourceLookupFailureException(String msg, Throwable cause)
          Constructor for DataSourceLookupFailureException.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, getMostSpecificCause, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, 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(String msg)
Constructor for DataSourceLookupFailureException.

Parameters:
msg - the detail message

DataSourceLookupFailureException

public DataSourceLookupFailureException(String msg,
                                        Throwable cause)
Constructor for DataSourceLookupFailureException.

Parameters:
msg - the detail message
cause - the root cause (usually from using a underlying lookup API such as JNDI)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.