类 DataSourceLookupFailureException
- 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.jdbc.datasource.lookup.DataSourceLookupFailureException
- 所有已实现的接口:
Serializable
public class DataSourceLookupFailureException extends NonTransientDataAccessException
Exception to be thrown by a DataSourceLookup implementation, indicating that the specified DataSource could not be obtained.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 DataSourceLookupFailureException(String msg)
Constructor for DataSourceLookupFailureException.DataSourceLookupFailureException(String msg, Throwable cause)
Constructor for DataSourceLookupFailureException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
DataSourceLookupFailureException
public DataSourceLookupFailureException(String msg)
Constructor for DataSourceLookupFailureException.- 参数:
msg
- the detail message
DataSourceLookupFailureException
public DataSourceLookupFailureException(String msg, Throwable cause)
Constructor for DataSourceLookupFailureException.- 参数:
msg
- the detail messagecause
- the root cause (usually from using a underlying lookup API such as JNDI)