Package org.springframework.jndi
Class JndiLookupFailureException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.jndi.JndiLookupFailureException
- All Implemented Interfaces:
Serializable
public class JndiLookupFailureException extends NestedRuntimeException
RuntimeException to be thrown in case of JNDI lookup failures, in particular from code that does not declare JNDI's checkedNamingException
: for example, from Spring'sJndiObjectTargetSource
.- Since:
- 2.0.3
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description JndiLookupFailureException(String msg, NamingException cause)
Construct a new JndiLookupFailureException, wrapping the given JNDI NamingException.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
JndiLookupFailureException
public JndiLookupFailureException(String msg, NamingException cause)
Construct a new JndiLookupFailureException, wrapping the given JNDI NamingException.- Parameters:
msg
- the detail messagecause
- the NamingException root cause