public class TypeMismatchNamingException
extends javax.naming.NamingException
JndiTemplate.lookup(String, Class)
,
Serialized FormConstructor and Description |
---|
TypeMismatchNamingException(java.lang.String jndiName,
java.lang.Class<?> requiredType,
java.lang.Class<?> actualType)
Construct a new TypeMismatchNamingException,
building an explanation text from the given arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getActualType()
Return the actual type that the lookup returned, if available.
|
java.lang.Class<?> |
getRequiredType()
Return the required type for the lookup, if available.
|
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
public TypeMismatchNamingException(java.lang.String jndiName, java.lang.Class<?> requiredType, java.lang.Class<?> actualType)
jndiName
- the JNDI namerequiredType
- the required type for the lookupactualType
- the actual type that the lookup returned