org.springframework.jndi
Class TypeMismatchNamingException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           javax.naming.NamingException
javax.naming.NamingException
               org.springframework.jndi.TypeMismatchNamingException
org.springframework.jndi.TypeMismatchNamingException
- All Implemented Interfaces: 
- Serializable
- public class TypeMismatchNamingException 
- extends NamingException
Exception thrown if a type mismatch is encountered for an object
 located in a JNDI environment. Thrown by JndiTemplate.
- Since:
- 1.2.8
- Author:
- Juergen Hoeller
- See Also:
- JndiTemplate.lookup(String, Class), 
Serialized Form
 
 
 
 
| Methods inherited from class javax.naming.NamingException | 
| appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString | 
 
 
 
TypeMismatchNamingException
public TypeMismatchNamingException(String jndiName,
                                   Class requiredType,
                                   Class actualType)
- Construct a new TypeMismatchNamingException,
 building an explanation text from the given arguments.
 
- Parameters:
- jndiName- the JNDI name
- requiredType- the required type for the lookup
- actualType- the actual type that the lookup returned
 
TypeMismatchNamingException
public TypeMismatchNamingException(String explanation)
- Construct a new TypeMismatchNamingException.
 
- Parameters:
- explanation- the explanation text
 
getRequiredType
public final Class getRequiredType()
- Return the required type for the lookup, if available.
 
- 
 
getActualType
public final Class getActualType()
- Return the actual type that the lookup returned, if available.
 
- 
 
Copyright © 2002-2008 The Spring Framework.