Package org.springframework.jndi
Class TypeMismatchNamingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
org.springframework.jndi.TypeMismatchNamingException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
-
Constructor Summary
ConstructorDescriptionTypeMismatchNamingException
(String jndiName, Class<?> requiredType, Class<?> actualType) Construct a new TypeMismatchNamingException, building an explanation text from the given arguments. -
Method Summary
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
TypeMismatchNamingException
Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.- Parameters:
jndiName
- the JNDI namerequiredType
- the required type for the lookupactualType
- the actual type that the lookup returned
-
-
Method Details
-
getRequiredType
Return the required type for the lookup, if available. -
getActualType
Return the actual type that the lookup returned, if available.
-